Struct svgdom::Length [] [src]

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

Representation of the <length> type.

Fields

Methods

impl Length
[src]

[src]

Constructs a new length.

[src]

Constructs a new length with LengthUnit::None.

[src]

Constructs a new length with a zero number.

Shorthand for: Length::new(0.0, Unit::None).

Trait Implementations

impl Display for Length
[src]

[src]

Formats the value using the given formatter. Read more

impl WriteBuffer for Length
[src]

[src]

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

[src]

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

[src]

Returns an object that implements fmt::Display using provided write options.

impl FromSpan for Length
[src]

[src]

Parses data from a StrSpan.

impl FuzzyEq<Length> for Length
[src]

[src]

Returns true if values are approximately equal.

[src]

Returns true if values are not approximately equal.

impl Copy for Length
[src]

impl FromStr for Length
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl PartialEq<Length> for Length
[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 Clone for Length
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Length
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Length> for AttributeValue
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Length

impl Sync for Length