Enum parse_size::UnitSystem[][src]

pub enum UnitSystem {
    Decimal,
    Binary,
}

The system to use when parsing prefixes like “KB” and “GB”.

Variants

Decimal

Use powers of 1000 for prefixes. Parsing “1 KB” returns 1000.

Binary

Use powers of 1024 for prefixes. Parsing “1 KB” returns 1024.

Trait Implementations

impl Clone for UnitSystem[src]

impl Copy for UnitSystem[src]

impl Debug for UnitSystem[src]

impl Eq for UnitSystem[src]

impl PartialEq<UnitSystem> for UnitSystem[src]

impl StructuralEq for UnitSystem[src]

impl StructuralPartialEq for UnitSystem[src]

Auto Trait Implementations

impl Send for UnitSystem

impl Sync for UnitSystem

impl Unpin for UnitSystem

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.