Struct style::values::generics::rect::Rect [] [src]

pub struct Rect<T>(pub T, pub T, pub T, pub T);

A CSS value made of four components, where its ToCss impl will try to serialize as few components as possible, like for example in border-width.

Methods

impl<T> Rect<T>
[src]

[src]

Returns a new Rect<T> value.

impl<T> Rect<T> where
    T: Clone
[src]

[src]

Returns a rect with all the values equal to v.

[src]

Parses a new Rect<T> value with the given parse function.

Trait Implementations

impl<T> Animate for Rect<T> where
    T: Animate
[src]

[src]

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

impl<T: Clone> Clone for Rect<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> ComputeSquaredDistance for Rect<T> where
    T: ComputeSquaredDistance
[src]

[src]

Computes the squared distance between two animatable values.

impl<T: Copy> Copy for Rect<T>
[src]

impl<T: Debug> Debug for Rect<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> MallocSizeOf for Rect<T> where
    T: 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<T: PartialEq> PartialEq for Rect<T>
[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<T> ToComputedValue for Rect<T> where
    T: 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<T> Parse for Rect<T> where
    T: Clone + Parse
[src]

[src]

Parse a value of this type. Read more

impl<T> ToCss for Rect<T> where
    T: PartialEq + ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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