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

pub enum ViewportPercentageLength {
    Vw(CSSFloat),
    Vh(CSSFloat),
    Vmin(CSSFloat),
    Vmax(CSSFloat),
}

A viewport-relative length.

https://drafts.csswg.org/css-values/#viewport-relative-lengths

Variants

A vw unit: https://drafts.csswg.org/css-values/#vw

A vh unit: https://drafts.csswg.org/css-values/#vh

https://drafts.csswg.org/css-values/#vmin

https://drafts.csswg.org/css-values/#vmax

Methods

impl ViewportPercentageLength
[src]

[src]

Computes the given viewport-relative length for the given viewport size.

Trait Implementations

impl Clone for ViewportPercentageLength
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ViewportPercentageLength
[src]

impl Debug for ViewportPercentageLength
[src]

[src]

Formats the value using the given formatter. Read more

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

The resulting type after applying the * operator.

[src]

Performs the * operation.