pub enum UnitType {
Binary,
Decimal,
Both,
}
Available on crate features
byte
or bit
only.Expand description
Choose how to find an appropriate unit based on a base of 2 or 10.
Variants§
Binary
KiB, MiB, …, etc.
Decimal
KB, MB, …, etc.
Both
Use both binary and decimal, choose the closest one.
Trait Implementations§
source§impl PartialEq for UnitType
impl PartialEq for UnitType
impl Copy for UnitType
impl Eq for UnitType
impl StructuralEq for UnitType
impl StructuralPartialEq for UnitType
Auto Trait Implementations§
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnwindSafe for UnitType
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