Enum style::values::generics::svg::SVGPaintKind [] [src]

pub enum SVGPaintKind<ColorType, UrlPaintServer> {
    None,
    Color(ColorType),
    PaintServer(UrlPaintServer),
    ContextFill,
    ContextStroke,
}

An SVG paint value without the fallback

Whereas the spec only allows PaintServer to have a fallback, Gecko lets the context properties have a fallback as well.

Variants

none

<color>

url(...)

context-fill

context-stroke

Trait Implementations

impl<ColorType, UrlPaintServer> Animate for SVGPaintKind<ColorType, UrlPaintServer> where
    ColorType: Animate
[src]

[src]

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

impl<ColorType: Clone, UrlPaintServer: Clone> Clone for SVGPaintKind<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 SVGPaintKind<ColorType, UrlPaintServer> where
    ColorType: ComputeSquaredDistance
[src]

[src]

Computes the squared distance between two animatable values.

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

[src]

Formats the value using the given formatter. Read more

impl<ColorType, UrlPaintServer> MallocSizeOf for SVGPaintKind<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 SVGPaintKind<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 SVGPaintKind<ColorType, UrlPaintServer> where
    ColorType: ToAnimatedValue,
    UrlPaintServer: ToAnimatedValue
[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> ToAnimatedZero for SVGPaintKind<ColorType, UrlPaintServer> where
    ColorType: ToAnimatedZero
[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<ColorType, UrlPaintServer> ToComputedValue for SVGPaintKind<ColorType, UrlPaintServer> where
    ColorType: ToComputedValue,
    UrlPaintServer: 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<ColorType, UrlPaintServer> ToCss for SVGPaintKind<ColorType, UrlPaintServer> where
    ColorType: ToCss,
    UrlPaintServer: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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