Enum style::values::generics::effects::Filter [] [src]

pub enum Filter<Angle, Factor, Length, DropShadow> {
    Blur(Length),
    Brightness(Factor),
    Contrast(Factor),
    Grayscale(Factor),
    HueRotate(Angle),
    Invert(Factor),
    Opacity(Factor),
    Saturate(Factor),
    Sepia(Factor),
    DropShadow(DropShadow),
}

A generic value for a single filter.

Variants

blur(<length>)

brightness(<factor>)

contrast(<factor>)

grayscale(<factor>)

hue-rotate(<angle>)

invert(<factor>)

opacity(<factor>)

saturate(<factor>)

sepia(<factor>)

drop-shadow(...)

Trait Implementations

impl<Angle: Clone, Factor: Clone, Length: Clone, DropShadow: Clone> Clone for Filter<Angle, Factor, Length, DropShadow>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Angle: Debug, Factor: Debug, Length: Debug, DropShadow: Debug> Debug for Filter<Angle, Factor, Length, DropShadow>
[src]

[src]

Formats the value using the given formatter. Read more

impl<Angle, Factor, Length, DropShadow> MallocSizeOf for Filter<Angle, Factor, Length, DropShadow> where
    Angle: MallocSizeOf,
    Factor: MallocSizeOf,
    Length: MallocSizeOf,
    DropShadow: 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<Angle: PartialEq, Factor: PartialEq, Length: PartialEq, DropShadow: PartialEq> PartialEq for Filter<Angle, Factor, Length, DropShadow>
[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<Angle, Factor, Length, DropShadow> ToAnimatedValue for Filter<Angle, Factor, Length, DropShadow> where
    Length: ToAnimatedValue,
    Factor: ToAnimatedValue,
    Angle: ToAnimatedValue,
    DropShadow: 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<Angle, Factor, Length, DropShadow> ToComputedValue for Filter<Angle, Factor, Length, DropShadow> where
    Length: ToComputedValue,
    Factor: ToComputedValue,
    Angle: ToComputedValue,
    DropShadow: 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<Angle, Factor, Length, DropShadow> ToCss for Filter<Angle, Factor, Length, DropShadow> where
    Length: ToCss,
    Factor: ToCss,
    Angle: ToCss,
    DropShadow: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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