pub struct MetricNumber(pub usize);Expand description
Implements Display to print the number with metric prefixes using fixed 4 space plus the metric prefix (you have to print a unit thereafter)
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for MetricNumber
impl Clone for MetricNumber
Source§fn clone(&self) -> MetricNumber
fn clone(&self) -> MetricNumber
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricNumber
impl Debug for MetricNumber
Source§impl Display for MetricNumber
impl Display for MetricNumber
Source§impl Ord for MetricNumber
impl Ord for MetricNumber
Source§fn cmp(&self, other: &MetricNumber) -> Ordering
fn cmp(&self, other: &MetricNumber) -> Ordering
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 PartialEq for MetricNumber
impl PartialEq for MetricNumber
Source§fn eq(&self, other: &MetricNumber) -> bool
fn eq(&self, other: &MetricNumber) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MetricNumber
impl PartialOrd for MetricNumber
impl Copy for MetricNumber
impl Eq for MetricNumber
impl StructuralPartialEq for MetricNumber
Auto Trait Implementations§
impl Freeze for MetricNumber
impl RefUnwindSafe for MetricNumber
impl Send for MetricNumber
impl Sync for MetricNumber
impl Unpin for MetricNumber
impl UnsafeUnpin for MetricNumber
impl UnwindSafe for MetricNumber
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