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
Linear(LineDirection)
A linear gradient.
Radial(EndingShape<Length, LengthOrPercentage>, Position, Option<Angle>)
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]
fn clone(
&self
) -> GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
[src]
&self
) -> GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
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<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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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]
LineDirection: MallocSizeOf,
Length: MallocSizeOf,
LengthOrPercentage: MallocSizeOf,
Position: MallocSizeOf,
Angle: MallocSizeOf,
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<LineDirection: PartialEq, Length: PartialEq, LengthOrPercentage: PartialEq, Position: PartialEq, Angle: PartialEq> PartialEq for GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
[src]
fn eq(
&self,
__arg_0: &GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
) -> bool
[src]
&self,
__arg_0: &GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(
&self,
__arg_0: &GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
) -> bool
[src]
&self,
__arg_0: &GradientKind<LineDirection, Length, LengthOrPercentage, Position, Angle>
) -> bool
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]
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,
type ComputedValue = GradientKind<<LineDirection as ToComputedValue>::ComputedValue, <Length as ToComputedValue>::ComputedValue, <LengthOrPercentage as ToComputedValue>::ComputedValue, <Position as ToComputedValue>::ComputedValue, <Angle as ToComputedValue>::ComputedValue>
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