#[non_exhaustive]pub enum ParseErrorKind {
InvalidCharacter,
WrongGroupCount,
NumberTooLong,
Ambiguous,
Unrecognized,
}Expand description
Why a text couldn’t be parsed (PARSING).
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.
InvalidCharacter
A character that isn’t a digit or a separator.
WrongGroupCount
Not exactly three groups of digits.
NumberTooLong
A number with more than 4 digits.
Ambiguous
The order of year, month and day can’t be decided.
Unrecognized
No accepted form matches.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
impl Copy for ParseErrorKind
Source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
Source§impl Display for ParseErrorKind
impl Display for ParseErrorKind
impl Eq for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
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§
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