Enum tai_time::ParseDateTimeError
source · pub enum ParseDateTimeError {
InvalidFieldValue,
InvalidFieldWidth,
MissingField,
RangeError(DateTimeError),
}Expand description
The error type returned when a date-time string is invalid or corresponds to a timestamp outside the representable range.
Variants§
InvalidFieldValue
A field value is either not of the expected numeric type or is out of range for the expected numeric type.
InvalidFieldWidth
The width of a fixed-width or minimum-width field is invalid.
MissingField
A field is missing.
RangeError(DateTimeError)
One of the field value is out of its expected range, or the corresponding timestamp is outside the representable range.
Trait Implementations§
source§impl Clone for ParseDateTimeError
impl Clone for ParseDateTimeError
source§fn clone(&self) -> ParseDateTimeError
fn clone(&self) -> ParseDateTimeError
Returns a copy 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 ParseDateTimeError
impl Debug for ParseDateTimeError
source§impl<'de> Deserialize<'de> for ParseDateTimeError
impl<'de> Deserialize<'de> for ParseDateTimeError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ParseDateTimeError
impl Display for ParseDateTimeError
source§impl Error for ParseDateTimeError
Available on crate feature std only.
impl Error for ParseDateTimeError
Available on crate feature
std only.1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Format for ParseDateTimeErrorwhere
DateTimeError: Format,
impl Format for ParseDateTimeErrorwhere
DateTimeError: Format,
source§impl PartialEq for ParseDateTimeError
impl PartialEq for ParseDateTimeError
source§fn eq(&self, other: &ParseDateTimeError) -> bool
fn eq(&self, other: &ParseDateTimeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ParseDateTimeError
impl Serialize for ParseDateTimeError
impl Eq for ParseDateTimeError
impl StructuralPartialEq for ParseDateTimeError
Auto Trait Implementations§
impl Freeze for ParseDateTimeError
impl RefUnwindSafe for ParseDateTimeError
impl Send for ParseDateTimeError
impl Sync for ParseDateTimeError
impl Unpin for ParseDateTimeError
impl UnwindSafe for ParseDateTimeError
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