Enum dtparse::ParseError [−][src]
pub enum ParseError { AmPmWithoutHour, ImpossibleTimestamp(&'static str), InvalidNumeric(String), UnrecognizedFormat, UnrecognizedToken(String), TimezoneUnsupported, YearMonthDayError(&'static str), }
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
Trait Implementations
impl From<DecimalError> for ParseError
[src]
impl From<DecimalError> for ParseError
fn from(err: DecimalError) -> Self
[src]
fn from(err: DecimalError) -> Self
Performs the conversion.
impl From<ParseIntError> for ParseError
[src]
impl From<ParseIntError> for ParseError
fn from(err: ParseIntError) -> Self
[src]
fn from(err: ParseIntError) -> Self
Performs the conversion.
impl Debug for ParseError
[src]
impl Debug for ParseError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ParseError
[src]
impl PartialEq for ParseError
fn eq(&self, other: &ParseError) -> bool
[src]
fn eq(&self, other: &ParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ParseError) -> bool
[src]
fn ne(&self, other: &ParseError) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Sync for ParseError