[][src]Enum dtparse::ParseError

pub enum ParseError {
    AmPmWithoutHour,
    ImpossibleTimestamp(&'static str),
    InvalidNumeric(String),
    UnrecognizedFormat,
    UnrecognizedToken(String),
    TimezoneUnsupported,
    YearMonthDayError(&'static str),
    NoDate,
}

Potential errors that come up when trying to parse time strings

Variants

AmPmWithoutHour

Attempted to specify "AM" or "PM" without indicating an hour

ImpossibleTimestamp(&'static str)

Impossible value for a category; the 32nd day of a month is impossible

InvalidNumeric(String)

Unable to parse a numeric value from a token expected to be numeric

UnrecognizedFormat

Generally unrecognized date string; please report to maintainer so new test cases can be developed

UnrecognizedToken(String)

A token the parser did not recognize was in the string, and fuzzy mode was off

TimezoneUnsupported

A timezone could not be handled; please report to maintainer as the timestring likely exposes a bug in the implementation

YearMonthDayError(&'static str)

Parser unable to make sense of year/month/day parameters in the time string; please report to maintainer as the timestring likely exposes a bug in implementation

NoDate

Parser unable to find any date/time-related content in the supplied string

Trait Implementations

impl Debug for ParseError[src]

impl Display for ParseError[src]

impl Error for ParseError[src]

impl From<Error> for ParseError[src]

impl From<ParseIntError> for ParseError[src]

impl PartialEq<ParseError> for ParseError[src]

impl StructuralPartialEq for ParseError[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> 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.