Enum style::values::generics::basic_shape::BasicShape
[−]
[src]
pub enum BasicShape<H, V, LengthOrPercentage> { Inset(InsetRect<LengthOrPercentage>), Circle(Circle<H, V, LengthOrPercentage>), Ellipse(Ellipse<H, V, LengthOrPercentage>), Polygon(Polygon<LengthOrPercentage>), }
Variants
Inset(InsetRect<LengthOrPercentage>)
Circle(Circle<H, V, LengthOrPercentage>)
Ellipse(Ellipse<H, V, LengthOrPercentage>)
Polygon(Polygon<LengthOrPercentage>)
Trait Implementations
impl<H, V, LengthOrPercentage> Animate for BasicShape<H, V, LengthOrPercentage> where
InsetRect<LengthOrPercentage>: Animate,
Circle<H, V, LengthOrPercentage>: Animate,
Ellipse<H, V, LengthOrPercentage>: Animate,
Polygon<LengthOrPercentage>: Animate,
[src]
InsetRect<LengthOrPercentage>: Animate,
Circle<H, V, LengthOrPercentage>: Animate,
Ellipse<H, V, LengthOrPercentage>: Animate,
Polygon<LengthOrPercentage>: Animate,
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>
[src]
Animate a value towards another one, given an animation procedure.
impl<H: Clone, V: Clone, LengthOrPercentage: Clone> Clone for BasicShape<H, V, LengthOrPercentage>
[src]
fn clone(&self) -> BasicShape<H, V, LengthOrPercentage>
[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<H, V, LengthOrPercentage> ComputeSquaredDistance for BasicShape<H, V, LengthOrPercentage> where
InsetRect<LengthOrPercentage>: ComputeSquaredDistance,
Circle<H, V, LengthOrPercentage>: ComputeSquaredDistance,
Ellipse<H, V, LengthOrPercentage>: ComputeSquaredDistance,
Polygon<LengthOrPercentage>: ComputeSquaredDistance,
[src]
InsetRect<LengthOrPercentage>: ComputeSquaredDistance,
Circle<H, V, LengthOrPercentage>: ComputeSquaredDistance,
Ellipse<H, V, LengthOrPercentage>: ComputeSquaredDistance,
Polygon<LengthOrPercentage>: ComputeSquaredDistance,
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
[src]
Computes the squared distance between two animatable values.
impl<H: Debug, V: Debug, LengthOrPercentage: Debug> Debug for BasicShape<H, V, LengthOrPercentage>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<H, V, LengthOrPercentage> MallocSizeOf for BasicShape<H, V, LengthOrPercentage> where
H: MallocSizeOf,
V: MallocSizeOf,
LengthOrPercentage: MallocSizeOf,
[src]
H: MallocSizeOf,
V: MallocSizeOf,
LengthOrPercentage: 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<H: PartialEq, V: PartialEq, LengthOrPercentage: PartialEq> PartialEq for BasicShape<H, V, LengthOrPercentage>
[src]
fn eq(&self, __arg_0: &BasicShape<H, V, LengthOrPercentage>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BasicShape<H, V, LengthOrPercentage>) -> bool
[src]
This method tests for !=
.
impl<H, V, LengthOrPercentage> ToComputedValue for BasicShape<H, V, LengthOrPercentage> where
InsetRect<LengthOrPercentage>: ToComputedValue<ComputedValue = InsetRect<<LengthOrPercentage as ToComputedValue>::ComputedValue>>,
LengthOrPercentage: ToComputedValue,
Circle<H, V, LengthOrPercentage>: ToComputedValue<ComputedValue = Circle<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue, <LengthOrPercentage as ToComputedValue>::ComputedValue>>,
H: ToComputedValue,
V: ToComputedValue,
Ellipse<H, V, LengthOrPercentage>: ToComputedValue<ComputedValue = Ellipse<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue, <LengthOrPercentage as ToComputedValue>::ComputedValue>>,
Polygon<LengthOrPercentage>: ToComputedValue<ComputedValue = Polygon<<LengthOrPercentage as ToComputedValue>::ComputedValue>>,
[src]
InsetRect<LengthOrPercentage>: ToComputedValue<ComputedValue = InsetRect<<LengthOrPercentage as ToComputedValue>::ComputedValue>>,
LengthOrPercentage: ToComputedValue,
Circle<H, V, LengthOrPercentage>: ToComputedValue<ComputedValue = Circle<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue, <LengthOrPercentage as ToComputedValue>::ComputedValue>>,
H: ToComputedValue,
V: ToComputedValue,
Ellipse<H, V, LengthOrPercentage>: ToComputedValue<ComputedValue = Ellipse<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue, <LengthOrPercentage as ToComputedValue>::ComputedValue>>,
Polygon<LengthOrPercentage>: ToComputedValue<ComputedValue = Polygon<<LengthOrPercentage as ToComputedValue>::ComputedValue>>,
type ComputedValue = BasicShape<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue, <LengthOrPercentage 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
impl<H, V, LengthOrPercentage> ToCss for BasicShape<H, V, LengthOrPercentage> where
InsetRect<LengthOrPercentage>: ToCss,
Circle<H, V, LengthOrPercentage>: ToCss,
Ellipse<H, V, LengthOrPercentage>: ToCss,
Polygon<LengthOrPercentage>: ToCss,
[src]
InsetRect<LengthOrPercentage>: ToCss,
Circle<H, V, LengthOrPercentage>: ToCss,
Ellipse<H, V, LengthOrPercentage>: ToCss,
Polygon<LengthOrPercentage>: ToCss,