Enum style::values::generics::basic_shape::ShapeSource [] [src]

pub enum ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> {
    ImageOrUrl(ImageOrUrl),
    Shape(BasicShape, Option<ReferenceBox>),
    Box(ReferenceBox),
    None,
}

A shape source, for some reference box.

Variants

Trait Implementations

impl<BasicShape, ReferenceBox, ImageOrUrl> Animate for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> where
    BasicShape: Animate,
    Option<ReferenceBox>: PartialEq,
    Option<ReferenceBox>: Clone
[src]

[src]

Animate a value towards another one, given an animation procedure.

impl<BasicShape: Clone, ReferenceBox: Clone, ImageOrUrl: Clone> Clone for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<BasicShape: Debug, ReferenceBox: Debug, ImageOrUrl: Debug> Debug for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl>
[src]

[src]

Formats the value using the given formatter. Read more

impl<BasicShape, ReferenceBox, ImageOrUrl> MallocSizeOf for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> where
    BasicShape: MallocSizeOf,
    ReferenceBox: MallocSizeOf,
    ImageOrUrl: 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<BasicShape: PartialEq, ReferenceBox: PartialEq, ImageOrUrl: PartialEq> PartialEq for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl>
[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<BasicShape, ReferenceBox, ImageOrUrl> ToComputedValue for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> where
    ImageOrUrl: ToComputedValue,
    BasicShape: ToComputedValue,
    Option<ReferenceBox>: ToComputedValue<ComputedValue = Option<<ReferenceBox as ToComputedValue>::ComputedValue>>,
    ReferenceBox: 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

impl<BasicShape, ReferenceBox, ImageOrUrl> ToCss for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> where
    ImageOrUrl: ToCss,
    BasicShape: ToCss,
    Option<ReferenceBox>: ToCss,
    ReferenceBox: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl<B, T, U> ComputeSquaredDistance for ShapeSource<B, T, U> where
    B: ComputeSquaredDistance,
    T: PartialEq
[src]

[src]

Computes the squared distance between two animatable values.

impl<B, T, U> ToAnimatedZero for ShapeSource<B, T, U>
[src]

[src]

Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation's "by-animation" where SMIL first interpolates from the zero value to the 'by' value, and then adds the result to the underlying value. Read more

impl<ReferenceBox, ImageOrUrl> Parse for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> where
    ReferenceBox: Parse,
    ImageOrUrl: Parse
[src]

[src]

Parse a value of this type. Read more