Enum style_traits::viewport::Zoom [] [src]

pub enum Zoom {
    Number(f32),
    Percentage(f32),
    Auto,
}

https://drafts.csswg.org/css-device-adapt/#descdef-viewport-zoom

Variants

A number value.

A percentage value.

The auto keyword.

Methods

impl Zoom
[src]

[src]

[src]

Get this zoom value as a float value. Returns None if the value is the auto keyword.

Trait Implementations

impl Clone for Zoom
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Zoom
[src]

impl Debug for Zoom
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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