pub enum ByteFormat {
B,
KiB,
MiB,
GiB,
TiB,
PiB,
EiB,
}Expand description
An enum representing the supported formats
Variants§
B
Byte formatted as B
KiB
KibiByte formatted as KiB
MiB
MebiByte formatted as MiB
GiB
GigiByte formatted as GiB
TiB
Tebibyte formatted as TiB
PiB
Pebibyte formatted as PiB
EiB
Exbibyte formatted as EiB
Trait Implementations§
Source§impl Debug for ByteFormat
impl Debug for ByteFormat
Auto Trait Implementations§
impl Freeze for ByteFormat
impl RefUnwindSafe for ByteFormat
impl Send for ByteFormat
impl Sync for ByteFormat
impl Unpin for ByteFormat
impl UnwindSafe for ByteFormat
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