Struct style::values::generics::svg::SVGPaint [] [src]

pub struct SVGPaint<ColorType, UrlPaintServer> {
    pub kind: SVGPaintKind<ColorType, UrlPaintServer>,
    pub fallback: Option<Either<ColorType, None_>>,
}

An SVG paint value

https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint

Fields

The paint source

The fallback color. It would be empty, the none keyword or .

Trait Implementations

impl<ColorType, UrlPaintServer> Animate for SVGPaint<ColorType, UrlPaintServer> where
    SVGPaintKind<ColorType, UrlPaintServer>: Animate,
    Option<Either<ColorType, None_>>: Animate
[src]

[src]

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

impl<ColorType: Clone, UrlPaintServer: Clone> Clone for SVGPaint<ColorType, UrlPaintServer>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<ColorType, UrlPaintServer> ComputeSquaredDistance for SVGPaint<ColorType, UrlPaintServer> where
    SVGPaintKind<ColorType, UrlPaintServer>: ComputeSquaredDistance,
    Option<Either<ColorType, None_>>: ComputeSquaredDistance
[src]

[src]

Computes the squared distance between two animatable values.

impl<ColorType: Debug, UrlPaintServer: Debug> Debug for SVGPaint<ColorType, UrlPaintServer>
[src]

[src]

Formats the value using the given formatter. Read more

impl<ColorType, UrlPaintServer> MallocSizeOf for SVGPaint<ColorType, UrlPaintServer> where
    ColorType: MallocSizeOf,
    UrlPaintServer: 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<ColorType: PartialEq, UrlPaintServer: PartialEq> PartialEq for SVGPaint<ColorType, UrlPaintServer>
[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<ColorType, UrlPaintServer> ToAnimatedValue for SVGPaint<ColorType, UrlPaintServer> where
    SVGPaintKind<ColorType, UrlPaintServer>: ToAnimatedValue<AnimatedValue = SVGPaintKind<<ColorType as ToAnimatedValue>::AnimatedValue, <UrlPaintServer as ToAnimatedValue>::AnimatedValue>>,
    UrlPaintServer: ToAnimatedValue,
    ColorType: ToAnimatedValue,
    Option<Either<ColorType, None_>>: ToAnimatedValue<AnimatedValue = Option<Either<<ColorType as ToAnimatedValue>::AnimatedValue, None_>>>, 
[src]

The type of the animated value.

[src]

Converts this value to an animated value.

[src]

Converts back an animated value into a computed value.

impl<ColorType, UrlPaintServer> ToComputedValue for SVGPaint<ColorType, UrlPaintServer> where
    SVGPaintKind<ColorType, UrlPaintServer>: ToComputedValue<ComputedValue = SVGPaintKind<<ColorType as ToComputedValue>::ComputedValue, <UrlPaintServer as ToComputedValue>::ComputedValue>>,
    UrlPaintServer: ToComputedValue,
    ColorType: ToComputedValue,
    Option<Either<ColorType, None_>>: ToComputedValue<ComputedValue = Option<Either<<ColorType as ToComputedValue>::ComputedValue, None_>>>, 
[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<ColorType, UrlPaintServer> ToCss for SVGPaint<ColorType, UrlPaintServer> where
    SVGPaintKind<ColorType, UrlPaintServer>: ToCss,
    Option<Either<ColorType, None_>>: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl<ColorType: Parse, UrlPaintServer: Parse> Parse for SVGPaint<ColorType, UrlPaintServer>
[src]

[src]

Parse a value of this type. Read more