Enum psd::UnitFloatStructure[][src]

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

Tuple Fields of Angle

0: f64
Density(f64)

Base per inch

Tuple Fields of Density

0: f64
Distance(f64)

Base 72ppi

Tuple Fields of Distance

0: f64
None

Base coerced

Percent(f64)

Unit value

Tuple Fields of Percent

0: f64
Pixels(f64)

Tagged unit value

Tuple Fields of Pixels

0: f64

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

Performs the conversion.

Performs the conversion.

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.