pub enum DateFormatError {
TimeParsing(Parse),
TimeComponentRange(ComponentRange),
IntParsing(ParseIntError),
StringSplit,
InvalidDate,
}
Expand description
Error that may occur during the String to Date conversion
Variants§
TimeParsing(Parse)
Date parsing error
TimeComponentRange(ComponentRange)
Integer to Month conversion error
IntParsing(ParseIntError)
String to Integer conversion error
StringSplit
String splitting error
InvalidDate
Incorrectly formatted date error
Trait Implementations§
Source§impl Debug for DateFormatError
impl Debug for DateFormatError
Source§impl Display for DateFormatError
impl Display for DateFormatError
Source§impl Error for DateFormatError
impl Error for DateFormatError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ComponentRange> for DateFormatError
impl From<ComponentRange> for DateFormatError
Source§fn from(value: ComponentRange) -> Self
fn from(value: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<Parse> for DateFormatError
impl From<Parse> for DateFormatError
Source§impl From<ParseIntError> for DateFormatError
impl From<ParseIntError> for DateFormatError
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DateFormatError
impl RefUnwindSafe for DateFormatError
impl Send for DateFormatError
impl Sync for DateFormatError
impl Unpin for DateFormatError
impl UnwindSafe for DateFormatError
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