Struct lyon_svg::parser::Length [] [src]

pub struct Length {
    pub num: f64,
    pub unit: LengthUnit,
}

Representation of the <length> type.

Fields

Methods

impl Length

Constructs a new length.

Trait Implementations

impl Copy for Length

impl PartialEq<Length> for Length

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Length

Formats the value using the given formatter.

impl Clone for Length

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more