Enum style::values::specified::image::LineDirection
[−]
[src]
pub enum LineDirection { Angle(Angle), Horizontal(X), Vertical(Y), Corner(X, Y), }
A specified gradient line direction.
Variants
Angle(Angle)
An angular direction.
Horizontal(X)
A horizontal direction.
Vertical(Y)
A vertical direction.
Corner(X, Y)
A direction towards a corner of a box.
Trait Implementations
impl ToComputedValue for SpecifiedLineDirection
[src]
type ComputedValue = LineDirection
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more
impl Clone for LineDirection
[src]
fn clone(&self) -> LineDirection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for LineDirection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for LineDirection
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl PartialEq for LineDirection
[src]
fn eq(&self, __arg_0: &LineDirection) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LineDirection) -> bool
[src]
This method tests for !=
.
impl GenericsLineDirection for LineDirection
[src]
fn points_downwards(&self, compat_mode: CompatMode) -> bool
[src]
Whether this direction points towards, and thus can be omitted.
fn to_css<W>(&self, dest: &mut W, compat_mode: CompatMode) -> Result where
W: Write,
[src]
W: Write,
Serialises this direction according to the compatibility mode.