pub struct UnitInfo {
pub abbr: &'static str,
pub measure: &'static str,
pub system: &'static str,
pub singular: &'static str,
pub plural: &'static str,
}Expand description
Metadata describing a unit.
Fields§
§abbr: &'static strThe unit abbreviation, e.g. kg.
measure: &'static strThe measure the unit belongs to, e.g. mass.
system: &'static strThe system the unit belongs to, e.g. metric.
singular: &'static strThe singular display name, e.g. Kilogram.
plural: &'static strThe plural display name, e.g. Kilograms.
Trait Implementations§
impl Copy for UnitInfo
impl Eq for UnitInfo
impl StructuralPartialEq for UnitInfo
Auto Trait Implementations§
impl Freeze for UnitInfo
impl RefUnwindSafe for UnitInfo
impl Send for UnitInfo
impl Sync for UnitInfo
impl Unpin for UnitInfo
impl UnsafeUnpin for UnitInfo
impl UnwindSafe for UnitInfo
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