[][src]Enum human_size::ParsingError

pub enum ParsingError {
    EmptyInput,
    MissingValue,
    InvalidValue,
    MissingMultiple,
    InvalidMultiple,
}

The error returned when trying to parse a SpecificSize, using the FromStr trait.

Variants

EmptyInput

The provided string is empty, i.e. "".

MissingValue

The provided string is missing a value, e.g. "B".

InvalidValue

The value is invalid, see SpecificSize::new.

MissingMultiple

The value is missing the multiple of bytes, e.g. "100".

InvalidMultiple

The multiple in the string is invalid, e.g. "100 invalid".

Trait Implementations

impl Clone for ParsingError[src]

impl Copy for ParsingError[src]

impl Debug for ParsingError[src]

impl Display for ParsingError[src]

impl Eq for ParsingError[src]

impl Error for ParsingError[src]

impl PartialEq<ParsingError> for ParsingError[src]

impl StructuralEq for ParsingError[src]

impl StructuralPartialEq for ParsingError[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.