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§
source§impl Clone for DisplayStyle
impl Clone for DisplayStyle
source§fn clone(&self) -> DisplayStyle
fn clone(&self) -> DisplayStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more