Enum style::values::computed::image::LineDirection
[−]
[src]
pub enum LineDirection { Angle(Angle), Horizontal(X), Vertical(Y), Corner(X, Y), }
A computed gradient line direction.
Variants
Angle(Angle)
An angle.
Horizontal(X)
A horizontal direction.
Vertical(Y)
A vertical direction.
Corner(X, Y)
A corner.
Trait Implementations
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 Copy for LineDirection
[src]
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 GenericLineDirection 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.