Enum style::values::generics::image::Image [] [src]

pub enum Image<Gradient, MozImageRect, ImageUrl> {
    Url(ImageUrl),
    Gradient(Box<Gradient>),
    Rect(Box<MozImageRect>),
    Element(Atom),
    PaintWorklet(PaintWorklet),
}

An image.

Variants

A <url()> image.

A <gradient> image. Gradients are rather large, and not nearly as common as urls, so we box them here to keep the size of this enum sane.

A -moz-image-rect image. Also fairly large and rare.

A -moz-element(# <element-id>)

A paint worklet image. https://drafts.css-houdini.org/css-paint-api/

Trait Implementations

impl<Gradient: Clone, MozImageRect: Clone, ImageUrl: Clone> Clone for Image<Gradient, MozImageRect, ImageUrl>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Gradient, MozImageRect, ImageUrl> MallocSizeOf for Image<Gradient, MozImageRect, ImageUrl> where
    Gradient: MallocSizeOf,
    MozImageRect: MallocSizeOf,
    ImageUrl: 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<Gradient: PartialEq, MozImageRect: PartialEq, ImageUrl: PartialEq> PartialEq for Image<Gradient, MozImageRect, ImageUrl>
[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<Gradient, MozImageRect, ImageUrl> ToComputedValue for Image<Gradient, MozImageRect, ImageUrl> where
    ImageUrl: ToComputedValue,
    Box<Gradient>: ToComputedValue<ComputedValue = Box<<Gradient as ToComputedValue>::ComputedValue>>,
    Gradient: ToComputedValue,
    Box<MozImageRect>: ToComputedValue<ComputedValue = Box<<MozImageRect as ToComputedValue>::ComputedValue>>,
    MozImageRect: 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<G, R, U> Debug for Image<G, R, U> where
    G: Debug,
    R: Debug,
    U: Debug + ToCss
[src]

[src]

Formats the value using the given formatter. Read more

impl<G, R, U> ToCss for Image<G, R, U> where
    G: ToCss,
    R: ToCss,
    U: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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