Enum parse_size::ByteSuffix[][src]

pub enum ByteSuffix {
    Deny,
    Allow,
    Require,
}

How to deal with the “B” suffix.

Variants

Deny

The “B” suffix must never appear. Parsing a string with the “B” suffix causes Error::InvalidDigit error.

Allow

The “B” suffix is optional.

Require

The “B” suffix is required. Parsing a string without the “B” suffix causes Error::InvalidDigit error.

Trait Implementations

impl Clone for ByteSuffix[src]

impl Copy for ByteSuffix[src]

impl Debug for ByteSuffix[src]

impl Eq for ByteSuffix[src]

impl PartialEq<ByteSuffix> for ByteSuffix[src]

impl StructuralEq for ByteSuffix[src]

impl StructuralPartialEq for ByteSuffix[src]

Auto Trait Implementations

impl Send for ByteSuffix

impl Sync for ByteSuffix

impl Unpin for ByteSuffix

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.