Enum ParseErrorKind
pub enum ParseErrorKind
The category of parse error
Variants
-
OutOfRange Given field is out of permitted range.
-
Impossible There is no possible date and time value with given set of fields.
This does not include the out-of-range conditions, which are trivially invalid. It includes the case that there are one or more fields that are inconsistent to each other.
-
NotEnough Given set of fields is not enough to make a requested date and time value.
Note that there may be a case that given fields constrain the possible values so much that there is a unique possible value. Chrono only tries to be correct for most useful sets of fields however, as such constraint solving can be expensive.
-
Invalid The input string has some invalid character sequence for given formatting items.
-
TooShort The input string has been prematurely ended.
-
TooLong All formatting items have been read but there is a remaining input.
-
BadFormat There was an error on the formatting string, or there were non-supported formatting items.
Trait Implementations
impl Clone for ParseErrorKind
fn clone(&self) -> ParseErrorKind
impl Copy for ParseErrorKind
impl Debug for ParseErrorKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ParseErrorKind
impl Hash for ParseErrorKind
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for ParseErrorKind
fn eq(&self, other: &ParseErrorKind) -> bool
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
Blanket Implementations
impl<T> Any for ParseErrorKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ParseErrorKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ParseErrorKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ParseErrorKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ParseErrorKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ParseErrorKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ParseErrorKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ParseErrorKind
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ParseErrorKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>