Enum style::values::specified::image::LineDirection [] [src]

pub enum LineDirection {
    Angle(Angle),
    Horizontal(X),
    Vertical(Y),
    Corner(XY),
}

A specified gradient line direction.

Variants

An angular direction.

A horizontal direction.

A vertical direction.

A direction towards a corner of a box.

Trait Implementations

impl ToComputedValue for SpecifiedLineDirection
[src]

The computed value type we're going to be converted to.

[src]

Convert a specified value to a computed value, using itself and the data inside the Context. Read more

[src]

Convert a computed value to specified value form. Read more

impl Clone for LineDirection
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for LineDirection
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for LineDirection
[src]

[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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl GenericsLineDirection for LineDirection
[src]

[src]

Whether this direction points towards, and thus can be omitted.

[src]

Serialises this direction according to the compatibility mode.