Struct svgdom::types::Length [] [src]

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

We use own struct and not one from svgparser, because of traits.

Fields

Methods

impl Length
[src]

Constructs a new length.

Trait Implementations

impl Clone for Length
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Length
[src]

impl PartialEq for Length
[src]

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
[src]

Formats the value using the given formatter.

impl FromStream for Length
[src]

Error type.

Parses data from Stream.

Parses data from &[u8].

impl WriteBuffer for Length
[src]

Writes data to Vec<u8> buffer using specified WriteOptions.

Writes data to Vec<u8> buffer using default WriteOptions.

impl Display for Length
[src]

Formats the value using the given formatter.

impl WriteToString for Length
[src]

Writes data to String using specified WriteOptions.