pub struct IecNumber(pub usize);Expand description
Implements Display to print the number with IEC-prefixes using fixed 4 space plus the prefix (you have to print a unit thereafter).
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Ord for IecNumber
impl Ord for IecNumber
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
Source§impl PartialOrd for IecNumber
impl PartialOrd for IecNumber
impl Copy for IecNumber
impl Eq for IecNumber
impl StructuralPartialEq for IecNumber
Auto Trait Implementations§
impl Freeze for IecNumber
impl RefUnwindSafe for IecNumber
impl Send for IecNumber
impl Sync for IecNumber
impl Unpin for IecNumber
impl UnsafeUnpin for IecNumber
impl UnwindSafe for IecNumber
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