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 moresource§impl Debug for DisplayStyle
impl Debug for DisplayStyle
impl Copy for DisplayStyle
Auto Trait Implementations§
impl Freeze for DisplayStyle
impl RefUnwindSafe for DisplayStyle
impl Send for DisplayStyle
impl Sync for DisplayStyle
impl Unpin for DisplayStyle
impl UnwindSafe for DisplayStyle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more