pub(crate) enum ParseError {
Show 37 variants
ExpectedAmPm,
ExpectedAmPmTooShort,
ExpectedIanaTz,
ExpectedIanaTzEndOfInput,
ExpectedMonthAbbreviation,
ExpectedMonthAbbreviationTooShort,
ExpectedWeekdayAbbreviation,
ExpectedWeekdayAbbreviationTooShort,
ExpectedChoice {
available: &'static [&'static [u8]],
},
ExpectedFractionalDigit,
ExpectedMatchLiteralByte {
expected: u8,
got: u8,
},
ExpectedMatchLiteralEndOfInput {
expected: u8,
},
ExpectedNonEmpty {
directive: u8,
},
NotAllowedLocaleClockTime,
NotAllowedLocaleDate,
NotAllowedLocaleDateAndTime,
NotAllowedLocaleTwelveHourClockTime,
NotAllowedTimeZoneAbbreviation,
ParseDay,
ParseDayOfYear,
ParseCentury,
ParseFractionalSeconds,
ParseHour,
ParseIsoWeekNumber,
ParseIsoWeekYear,
ParseIsoWeekYearTwoDigit,
ParseMinute,
ParseMondayWeekNumber,
ParseMonth,
ParseSecond,
ParseSundayWeekNumber,
ParseTimestamp,
ParseWeekdayNumber,
ParseYear,
ParseYearTwoDigit,
UnknownMonthName,
UnknownWeekdayAbbreviation,
}Variants§
ExpectedAmPm
ExpectedAmPmTooShort
ExpectedIanaTz
ExpectedIanaTzEndOfInput
ExpectedMonthAbbreviation
ExpectedMonthAbbreviationTooShort
ExpectedWeekdayAbbreviation
ExpectedWeekdayAbbreviationTooShort
ExpectedChoice
ExpectedFractionalDigit
ExpectedMatchLiteralByte
ExpectedMatchLiteralEndOfInput
ExpectedNonEmpty
NotAllowedLocaleClockTime
NotAllowedLocaleDate
NotAllowedLocaleDateAndTime
NotAllowedLocaleTwelveHourClockTime
NotAllowedTimeZoneAbbreviation
ParseDay
ParseDayOfYear
ParseCentury
ParseFractionalSeconds
ParseHour
ParseIsoWeekNumber
ParseIsoWeekYear
ParseIsoWeekYearTwoDigit
ParseMinute
ParseMondayWeekNumber
ParseMonth
ParseSecond
ParseSundayWeekNumber
ParseTimestamp
ParseWeekdayNumber
ParseYear
ParseYearTwoDigit
UnknownMonthName
UnknownWeekdayAbbreviation
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(err: ParseError) -> Error
fn from(err: ParseError) -> Error
Converts to this type from the input type.
Source§impl IntoError for ParseError
impl IntoError for ParseError
fn into_error(self) -> Error
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more