#[non_exhaustive]pub enum NumberErrorKind {
Empty,
InvalidDigit,
}Expand description
What ParseNumberError found wrong with the text.
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.
Empty
The text is empty.
InvalidDigit
A character is not a digit of the radix, or the sign has no digits after it.
Trait Implementations§
Source§impl Clone for NumberErrorKind
impl Clone for NumberErrorKind
impl Copy for NumberErrorKind
Source§impl Debug for NumberErrorKind
impl Debug for NumberErrorKind
impl Eq for NumberErrorKind
Source§impl PartialEq for NumberErrorKind
impl PartialEq for NumberErrorKind
impl StructuralPartialEq for NumberErrorKind
Auto Trait Implementations§
impl Freeze for NumberErrorKind
impl RefUnwindSafe for NumberErrorKind
impl Send for NumberErrorKind
impl Sync for NumberErrorKind
impl Unpin for NumberErrorKind
impl UnsafeUnpin for NumberErrorKind
impl UnwindSafe for NumberErrorKind
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