Enum human_size::ParsingError[][src]

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

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

Variants

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

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

The value is invalid, see SpecificSize::new.

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

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

Trait Implementations

impl Copy for ParsingError
[src]

impl Clone for ParsingError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ParsingError
[src]

Formats the value using the given formatter. Read more

impl Eq for ParsingError
[src]

impl PartialEq for ParsingError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for ParsingError
[src]

Formats the value using the given formatter. Read more

impl Error for ParsingError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations