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

pub enum AbsoluteLength {
    Px(CSSFloat),
    In(CSSFloat),
    Cm(CSSFloat),
    Mm(CSSFloat),
    Q(CSSFloat),
    Pt(CSSFloat),
    Pc(CSSFloat),
}

Represents an absolute length with its unit

Variants

An absolute length in pixels (px)

An absolute length in inches (in)

An absolute length in centimeters (cm)

An absolute length in millimeters (mm)

An absolute length in quarter-millimeters (q)

An absolute length in points (pt)

An absolute length in pica (pc)

Methods

impl AbsoluteLength
[src]

[src]

Convert this into a pixel value.

Trait Implementations

impl Clone for AbsoluteLength
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for AbsoluteLength
[src]

impl Debug for AbsoluteLength
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for AbsoluteLength
[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 AbsoluteLength
[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 AbsoluteLength
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl ToComputedValue for AbsoluteLength
[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 Mul<CSSFloat> for AbsoluteLength
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Add<AbsoluteLength> for AbsoluteLength
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.