Enum style::values::specified::length::FontRelativeLength [] [src]

pub enum FontRelativeLength {
    Em(CSSFloat),
    Ex(CSSFloat),
    Ch(CSSFloat),
    Rem(CSSFloat),
}

A font relative length.

Variants

A "em" value: https://drafts.csswg.org/css-values/#em

A "ex" value: https://drafts.csswg.org/css-values/#ex

A "ch" value: https://drafts.csswg.org/css-values/#ch

A "rem" value: https://drafts.csswg.org/css-values/#rem

Methods

impl FontRelativeLength
[src]

[src]

Computes the font-relative length.

Trait Implementations

impl Clone for FontRelativeLength
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for FontRelativeLength
[src]

impl Debug for FontRelativeLength
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for FontRelativeLength
[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 PartialEq for FontRelativeLength
[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 ToCss for FontRelativeLength
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl Mul<CSSFloat> for FontRelativeLength
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.