Enum uom::fmt::DisplayStyle
source[−]pub enum DisplayStyle {
Abbreviation,
Description,
}
Expand description
An enum to specify the display style to use.
Variants
Abbreviation
Display the value and a unit abbreviation, e.g. “1.0 m”, “327 s”.
Description
Display the value and full unit name (pluralized as appropriate), e.g. “1 kilogram”, “756 feet”.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DisplayStyle
impl Send for DisplayStyle
impl Sync for DisplayStyle
impl Unpin for DisplayStyle
impl UnwindSafe for DisplayStyle
Blanket Implementations
Mutably borrows from an owned value. Read more