Enum style::values::generics::image::GradientKind [] [src]

pub enum GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle> {
    Linear(LineDirection),
    Radial(EndingShape<Length, LengthOrPercentage>, Position, Option<Angle>),
}

A gradient kind.

Variants

A linear gradient.

A radial gradient.

Trait Implementations

impl<LineDirection: Clone, Length: Clone, LengthOrPercentage: Clone, Position: Clone, Angle: Clone> Clone for GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<LineDirection: Copy, Length: Copy, LengthOrPercentage: Copy, Position: Copy, Angle: Copy> Copy for GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
[src]

impl<LineDirection: Debug, Length: Debug, LengthOrPercentage: Debug, Position: Debug, Angle: Debug> Debug for GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
[src]

[src]

Formats the value using the given formatter. Read more

impl<LineDirection, Length, LengthOrPercentage, Position, Angle> MallocSizeOf for GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle> where
    LineDirection: MallocSizeOf,
    Length: MallocSizeOf,
    LengthOrPercentage: MallocSizeOf,
    Position: MallocSizeOf,
    Angle: MallocSizeOf
[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<LineDirection: PartialEq, Length: PartialEq, LengthOrPercentage: PartialEq, Position: PartialEq, Angle: PartialEq> PartialEq for GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
[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<LineDirection, Length, LengthOrPercentage, Position, Angle> ToComputedValue for GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle> where
    LineDirection: ToComputedValue,
    EndingShape<Length, LengthOrPercentage>: ToComputedValue<ComputedValue = EndingShape<<Length as ToComputedValue>::ComputedValue, <LengthOrPercentage as ToComputedValue>::ComputedValue>>,
    Length: ToComputedValue,
    LengthOrPercentage: ToComputedValue,
    Position: ToComputedValue,
    Option<Angle>: ToComputedValue<ComputedValue = Option<<Angle as ToComputedValue>::ComputedValue>>,
    Angle: ToComputedValue
[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