pub enum SizeUnit {
Binary,
Decimal,
}Expand description
Size unit system to use for formatting.
Variants§
Binary
Binary units (1024-based): KiB, MiB, GiB, etc.
Decimal
Decimal units (1000-based): kB, MB, GB, etc.
Trait Implementations§
impl Copy for SizeUnit
impl Eq for SizeUnit
impl StructuralPartialEq for SizeUnit
Auto Trait Implementations§
impl Freeze for SizeUnit
impl RefUnwindSafe for SizeUnit
impl Send for SizeUnit
impl Sync for SizeUnit
impl Unpin for SizeUnit
impl UnsafeUnpin for SizeUnit
impl UnwindSafe for SizeUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.