#[non_exhaustive]pub enum DtErrKind {
Show 19 variants
UnexpectedEnd,
UnknownDirective,
UnsupportedDirective,
BadFractional,
MismatchedLiteral,
ExpectedValue,
InvalidName,
InvalidTimezoneOffset,
MustStartWith,
InvalidNumber,
InvalidItem,
InvalidBytes,
InvalidSyntax,
OutOfRange,
TrailingCharacters,
Incomplete,
InvalidInput,
InternalErr,
IOErr,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnexpectedEnd
Format string or input ended unexpectedly (%, ., exhausted input, etc.)
UnknownDirective
Unknown % directive (the _ case)
UnsupportedDirective
%c, %r, %X, %x, %Z etc. (explicitly unsupported library directives)
BadFractional
The . was followed by something other than f/N
MismatchedLiteral
Literal character or % sign in input didn’t match format
ExpectedValue
Generic “could not parse expected integer” (year, month, day, hour, …)
InvalidName
Month name, weekday name, or AM/PM failed to parse
InvalidTimezoneOffset
Anything wrong with a timezone offset (+HH:MM:SS syntax)
MustStartWith
InvalidNumber
InvalidItem
InvalidBytes
InvalidSyntax
OutOfRange
TrailingCharacters
Incomplete
InvalidInput
InternalErr
IOErr
Trait Implementations§
impl Copy for DtErrKind
impl Eq for DtErrKind
impl StructuralPartialEq for DtErrKind
Auto Trait Implementations§
impl Freeze for DtErrKind
impl RefUnwindSafe for DtErrKind
impl Send for DtErrKind
impl Sync for DtErrKind
impl Unpin for DtErrKind
impl UnsafeUnpin for DtErrKind
impl UnwindSafe for DtErrKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.