#[non_exhaustive]pub enum TypeErrorKind {
UndefinedRange,
DayOutOfRange,
MonthOutOfRange,
InvalidNumber,
MissingNumber,
WrongNumberOfDigits,
InvalidFormat,
UnknownGender,
InvalidIntegerRange,
UnknownPagination,
UnknownEditorType,
YearZeroCE,
}
Expand description
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.
UndefinedRange
The date range was open on both sides.
DayOutOfRange
The day in a date was out of range (1-31).
MonthOutOfRange
The month in a date was out of range (1-12).
InvalidNumber
The given input did not contain a valid number.
MissingNumber
The given input did not contain a number.
WrongNumberOfDigits
A number did not have the right number of digits.
InvalidFormat
The entry was not in a format valid for that type.
UnknownGender
There is no Gender
variant for this input.
InvalidIntegerRange
There was no integer range.
UnknownPagination
There is no Pagination
variant for this input.
UnknownEditorType
There is no EditorType
variant for this input.
YearZeroCE
The year 0 CE or BCE does not exist.
Trait Implementations§
Source§impl Clone for TypeErrorKind
impl Clone for TypeErrorKind
Source§fn clone(&self) -> TypeErrorKind
fn clone(&self) -> TypeErrorKind
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 TypeErrorKind
impl Debug for TypeErrorKind
Source§impl Display for TypeErrorKind
impl Display for TypeErrorKind
Source§impl PartialEq for TypeErrorKind
impl PartialEq for TypeErrorKind
impl StructuralPartialEq for TypeErrorKind
Auto Trait Implementations§
impl Freeze for TypeErrorKind
impl RefUnwindSafe for TypeErrorKind
impl Send for TypeErrorKind
impl Sync for TypeErrorKind
impl Unpin for TypeErrorKind
impl UnwindSafe for TypeErrorKind
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