pub struct Unit(pub u8);Expand description
A unit code from the DLMS/COSEM unit table (IEC 62056-62), as SML carries it.
Tuple Fields§
§0: u8Implementations§
Source§impl Unit
impl Unit
Sourcepub const M3_CORRECTED: Self
pub const M3_CORRECTED: Self
Corrected volume, cubic metre (gas: volume at base conditions). Displays as m³
like M3; compare the units, not their symbols.
Sourcepub const M3_PER_H_CORRECTED: Self
pub const M3_PER_H_CORRECTED: Self
Corrected volume flow, cubic metre per hour. Displays as m³/h like
M3_PER_H.
Trait Implementations§
impl Copy for Unit
impl Eq for Unit
Source§impl Ord for Unit
impl Ord for Unit
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Unit
impl PartialOrd for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Forget for Unit
impl Freeze for Unit
impl Move for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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