pub enum Unit {
Show 13 variants
Byte,
KiByte,
MiByte,
GiByte,
TiByte,
PiByte,
EiByte,
KByte,
MByte,
GByte,
TByte,
PByte,
EByte,
}
Expand description
Bytes units, like “KB”, “KiB”
Variants§
Byte
1 Byte
KiByte
1 << 10 Byte
MiByte
1 << 20 Byte
GiByte
1 << 30 Byte
TiByte
1 << 40 Byte
PiByte
1 << 50 Byte
EiByte
1 << 60 Byte
KByte
1000 Byte
MByte
1000 KByte
GByte
1000 MByte
TByte
1000 GByte
PByte
1000 TByte
EByte
1000 PByte
Trait Implementations§
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin 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