Enum parse_duration::ParseError [] [src]

pub enum ParseError {
    ParseIntError(String),
    UnknownUnitError(String),
    OutOfBoundsError(BigInt),
    NoUnitFoundError(String),
    NoValueFoundError(String),
}

An enumeration of the possible errors while parsing.

Variants

A string failed to be parsed as an integer.

An unrecognized unit was found.

A BigInt was too big to be converted into a u64 or was negative.

A value without a unit was found.

No Value at all was found.

Trait Implementations

impl Debug for ParseError
[src]

Formats the value using the given formatter.

impl PartialEq for ParseError
[src]

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

This method tests for !=.

impl Eq for ParseError
[src]

impl Clone for ParseError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for ParseError
[src]

Formats the value using the given formatter. Read more

impl Error for ParseError
[src]

A short description of the error. Read more

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