#[non_exhaustive]pub enum IntErrorKind {
Empty,
InvalidDigit,
PosOverflow,
NegOverflow,
Zero,
}Expand description
Enum to store the various types of errors that can cause parsing an integer to fail.
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
Value being parsed is empty.
InvalidDigit
Contains an invalid digit in its context.
PosOverflow
Integer is too large to store in target integer type.
NegOverflow
Integer is too small to store in target integer type.
Zero
Value was Zero
Trait Implementations§
Source§impl Clone for IntErrorKind
impl Clone for IntErrorKind
Source§fn clone(&self) -> IntErrorKind
fn clone(&self) -> IntErrorKind
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 IntErrorKind
impl Debug for IntErrorKind
Source§impl PartialEq for IntErrorKind
impl PartialEq for IntErrorKind
impl Eq for IntErrorKind
impl StructuralPartialEq for IntErrorKind
Auto Trait Implementations§
impl Freeze for IntErrorKind
impl RefUnwindSafe for IntErrorKind
impl Send for IntErrorKind
impl Sync for IntErrorKind
impl Unpin for IntErrorKind
impl UnwindSafe for IntErrorKind
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