pub enum ParseDateError {
InvalidDate(DateError),
InvalidMonth {
value: u32,
},
Trailing,
InvalidIntStart {
got: char,
},
InvalidUIntStart {
got: char,
},
EmptyInt,
UnexpectedChar {
expected: char,
got: char,
},
UnexpectedEnd {
expected: char,
},
ParseInt(ParseIntError),
}Expand description
Error returned by Calendar::parse_date()
on an invalid input date string
Variants§
InvalidDate(DateError)
Returned if the date specified by the date string does not occur in the calendar
InvalidMonth
Returned if the month component of the date string had an invalid numeric value (i.e., zero or greater than twelve)
Trailing
Returned if the date string had extra trailing characters
InvalidIntStart
Returned if a non-digit, non-sign character was encountered in the date string while expecting a signed integer
InvalidUIntStart
Returned if a non-digit was encountered in the date string while expecting an unsigned integer
EmptyInt
Returned if the end of the date string was reached while expecting an integer
UnexpectedChar
Returned if a specific character was expected but a different one was encountered instead
UnexpectedEnd
Returned if a specific character was expected but the end of the date string was reached instead
ParseInt(ParseIntError)
Returned if a numeric component of the date string could not be parsed as an integer
Trait Implementations§
Source§impl Clone for ParseDateError
impl Clone for ParseDateError
Source§fn clone(&self) -> ParseDateError
fn clone(&self) -> ParseDateError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more