#[repr(u64)]pub enum ByteScale {
B = 1,
KB = 1_024,
MB = 1_048_576,
GB = 1_073_741_824,
TB = 1_099_511_627_776,
PB = 1_125_899_906_842_624,
EB = 1_152_921_504_606_846_976,
}Expand description
Byte scale (bytes, kilobytes, megabytes, gigabytes, etc)
Variants§
B = 1
single byte
KB = 1_024
Kilobytes, this is the default value when using Default
MB = 1_048_576
Megabytes
GB = 1_073_741_824
Gigabytes
TB = 1_099_511_627_776
Terabytes
PB = 1_125_899_906_842_624
Petabytes
EB = 1_152_921_504_606_846_976
Exabytes
Trait Implementations§
Source§impl Ord for ByteScale
impl Ord for ByteScale
Source§impl PartialOrd for ByteScale
impl PartialOrd for ByteScale
impl Copy for ByteScale
impl Eq for ByteScale
impl StructuralPartialEq for ByteScale
Auto Trait Implementations§
impl Freeze for ByteScale
impl RefUnwindSafe for ByteScale
impl Send for ByteScale
impl Sync for ByteScale
impl Unpin for ByteScale
impl UnsafeUnpin for ByteScale
impl UnwindSafe for ByteScale
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