Enum ParseErrorKind

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.

Implementations

impl Clone for ParseErrorKind

fn clone(self: &Self) -> ParseErrorKind

impl Copy for ParseErrorKind

impl Debug for ParseErrorKind

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Eq for ParseErrorKind

impl Freeze for ParseErrorKind

impl Hash for ParseErrorKind

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for ParseErrorKind

fn eq(self: &Self, other: &ParseErrorKind) -> bool

impl RefUnwindSafe for ParseErrorKind

impl Send for ParseErrorKind

impl StructuralPartialEq for ParseErrorKind

impl Sync for ParseErrorKind

impl Unpin for ParseErrorKind

impl UnwindSafe for ParseErrorKind

impl<T> Any for ParseErrorKind

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ParseErrorKind

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ParseErrorKind

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for ParseErrorKind

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for ParseErrorKind

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for ParseErrorKind

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for ParseErrorKind

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ParseErrorKind

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ParseErrorKind

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>