pub enum UnitFloatStructure {
    Angle(f64),
    Density(f64),
    Distance(f64),
    None,
    Percent(f64),
    Pixels(f64),
}
Expand description

+————————————+––––––––––––––––––––––––––––+ | Length | Description | +————————————+––––––––––––––––––––––––––––+ | 4 | Units the following value is in. One of the following: | | | ‘#Ang’ = angle: base degrees | | | ‘#Rsl’ = density: base per inch | | | ‘#Rlt’ = distance: base 72ppi | | | ‘#Nne’ = none: coerced. | | | ‘#Prc’= percent: unit value | | | ‘#Pxl’ = pixels: tagged unit value | | 8 | Actual value (double) | +————————————+––––––––––––––––––––––––––––+

Variants

Angle(f64)

Base degrees

Density(f64)

Base per inch

Distance(f64)

Base 72ppi

None

Base coerced

Percent(f64)

Unit value

Pixels(f64)

Tagged unit value

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.