#[repr(u8)]pub enum SizeUnit {
Auto = 0,
Bytes = 66,
KiB = 75,
MiB = 77,
GiB = 71,
TiB = 84,
PiB = 80,
EiB = 69,
}Expand description
Units for formatting byte sizes.
Variants§
Implementations§
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