Enum style::values::generics::text::Spacing [] [src]

pub enum Spacing<Value> {
    Normal,
    Value(Value),
}

A generic spacing value for the letter-spacing and word-spacing properties.

Variants

normal

<value>

Methods

impl<Value> Spacing<Value>
[src]

[src]

Returns normal.

[src]

Parses.

[src]

Returns the spacing value, if not normal.

Trait Implementations

impl<Value: Clone> Clone for Spacing<Value>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Value: Copy> Copy for Spacing<Value>
[src]

impl<Value: Debug> Debug for Spacing<Value>
[src]

[src]

Formats the value using the given formatter. Read more

impl<Value> MallocSizeOf for Spacing<Value> where
    Value: 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<Value: PartialEq> PartialEq for Spacing<Value>
[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<Value> ToComputedValue for Spacing<Value> where
    Value: 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<Value> ToCss for Spacing<Value> where
    Value: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl<Value> Animate for Spacing<Value> where
    Value: Animate + From<Au>, 
[src]

[src]

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

impl<V> ComputeSquaredDistance for Spacing<V> where
    V: ComputeSquaredDistance + From<Au>, 
[src]

[src]

Computes the squared distance between two animatable values.

impl<V> ToAnimatedZero for Spacing<V> where
    V: From<Au>, 
[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