pub enum FileSize {
Byte(u64),
Kilobyte(f64),
Megabyte(f64),
Gigabyte(f64),
Terabyte(f64),
}Expand description
enum to easily convert between byte_sizes
Variants§
Byte(u64)
size in bytes
Kilobyte(f64)
size in kilobytes
Megabyte(f64)
size in megabytes
Gigabyte(f64)
size in gigabytes
Terabyte(f64)
size in terabytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileSize
impl RefUnwindSafe for FileSize
impl Send for FileSize
impl Sync for FileSize
impl Unpin for FileSize
impl UnwindSafe for FileSize
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