pub enum ByteUnit {
B,
KB,
KiB,
MB,
MiB,
GB,
GiB,
TB,
TiB,
PB,
PiB,
}
Expand description
The unit of bytes.
Variants
B
1 B = 1 byte
KB
1 KB = 1000 bytes
KiB
1 KiB = 1024 bytes
MB
1 MB = 1000000 bytes
MiB
1 MiB = 1048576 bytes
GB
1 GB = 1000000000 bytes
GiB
1 GiB = 1073741824 bytes
TB
1 TB = 1000000000000 bytes
TiB
1 TiB = 1099511627776 bytes
PB
1 PB = 1000000000000000 bytes
PiB
1 PiB = 1125899906842624 bytes
Trait Implementations
impl Copy for ByteUnit
impl Eq for ByteUnit
impl StructuralEq for ByteUnit
impl StructuralPartialEq for ByteUnit
Auto Trait Implementations
impl RefUnwindSafe for ByteUnit
impl Send for ByteUnit
impl Sync for ByteUnit
impl Unpin for ByteUnit
impl UnwindSafe for ByteUnit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more