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

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]

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

[src]

Returns a copy of the value. Read more

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]

[src]

Computes the squared distance between two animatable values.

impl<H: Debug, V: Debug, LengthOrPercentage: Debug> Debug for BasicShape<H, V, LengthOrPercentage>
[src]

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

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

[src]

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

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

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

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more