Struct style::values::generics::position::Position [] [src]

pub struct Position<H, V> {
    pub horizontal: H,
    pub vertical: V,
}

A generic type for representing a CSS position.

Fields

The horizontal component of position.

The vertical component of position.

Methods

impl<H, V> Position<H, V>
[src]

[src]

Returns a new position.

Trait Implementations

impl<H, V> Animate for Position<H, V> where
    H: Animate,
    V: Animate
[src]

[src]

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

impl<H: Clone, V: Clone> Clone for Position<H, V>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<H, V> ComputeSquaredDistance for Position<H, V> where
    H: ComputeSquaredDistance,
    V: ComputeSquaredDistance
[src]

[src]

Computes the squared distance between two animatable values.

impl<H: Copy, V: Copy> Copy for Position<H, V>
[src]

impl<H: Debug, V: Debug> Debug for Position<H, V>
[src]

[src]

Formats the value using the given formatter. Read more

impl<H, V> MallocSizeOf for Position<H, V> where
    H: MallocSizeOf,
    V: 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<H: PartialEq, V: PartialEq> PartialEq for Position<H, V>
[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<H, V> ToAnimatedZero for Position<H, V> where
    H: ToAnimatedZero,
    V: 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<H, V> ToComputedValue for Position<H, V> where
    H: ToComputedValue,
    V: 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<H, V> RepeatableListAnimatable for Position<H, V> where
    H: RepeatableListAnimatable,
    V: RepeatableListAnimatable
[src]