Struct style::values::generics::size::Size [] [src]

pub struct Size<L>(pub Size2D<L>);

A generic size, for border-*-radius longhand properties, or border-spacing.

Methods

impl<L> Size<L>
[src]

[src]

Create a new Size for an area of given width and height.

Important traits for &'a mut W
[src]

Returns the width component.

Important traits for &'a mut W
[src]

Returns the height component.

[src]

Parse a Size with a given parsing function.

Trait Implementations

impl<L> Animate for Size<L> where
    Size2D<L>: Animate
[src]

[src]

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

impl<L: Clone> Clone for Size<L>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<L> ComputeSquaredDistance for Size<L> where
    Size2D<L>: ComputeSquaredDistance
[src]

[src]

Computes the squared distance between two animatable values.

impl<L: Copy> Copy for Size<L>
[src]

impl<L: Debug> Debug for Size<L>
[src]

[src]

Formats the value using the given formatter. Read more

impl<L> MallocSizeOf for Size<L> where
    L: 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<L: PartialEq> PartialEq for Size<L>
[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<L> ToComputedValue for Size<L> where
    Size2D<L>: ToComputedValue<ComputedValue = Size2D<<L as ToComputedValue>::ComputedValue>>,
    L: 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<L> ToCss for Size<L> where
    L: ToCss + PartialEq
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl<L> ToAnimatedValue for Size<L> where
    L: 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.