Enum gregorian::DateParseError
source · pub enum DateParseError {
InvalidDateSyntax(InvalidDateSyntax),
InvalidDate(InvalidDate),
}
Expand description
The string is not a valid date.
Variants
InvalidDateSyntax(InvalidDateSyntax)
InvalidDate(InvalidDate)
Trait Implementations
sourceimpl Clone for DateParseError
impl Clone for DateParseError
sourcefn clone(&self) -> DateParseError
fn clone(&self) -> DateParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DateParseError
impl Debug for DateParseError
sourceimpl Display for DateParseError
impl Display for DateParseError
sourceimpl Error for DateParseError
impl Error for DateParseError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<InvalidDate> for DateParseError
impl From<InvalidDate> for DateParseError
sourcefn from(other: InvalidDate) -> Self
fn from(other: InvalidDate) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidDateSyntax> for DateParseError
impl From<InvalidDateSyntax> for DateParseError
sourcefn from(other: InvalidDateSyntax) -> Self
fn from(other: InvalidDateSyntax) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DateParseError> for DateParseError
impl PartialEq<DateParseError> for DateParseError
sourcefn eq(&self, other: &DateParseError) -> bool
fn eq(&self, other: &DateParseError) -> bool
impl Eq for DateParseError
impl StructuralEq for DateParseError
impl StructuralPartialEq for DateParseError
Auto Trait Implementations
impl RefUnwindSafe for DateParseError
impl Send for DateParseError
impl Sync for DateParseError
impl Unpin for DateParseError
impl UnwindSafe for DateParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more