pub enum ParseIntErr {
InvalidDigit([u8; 1]),
Overflow,
}Expand description
An enum representing the possible Errors encountered while parsing a slice of bytes to an integer.
Variants§
InvalidDigit([u8; 1])
Represents a character that could not be converted to a number.
Overflow
Represents that parsing of the slice could not be started, the slice was too large.
Implementations§
Trait Implementations§
Source§impl Clone for ParseIntErr
impl Clone for ParseIntErr
Source§fn clone(&self) -> ParseIntErr
fn clone(&self) -> ParseIntErr
Returns a duplicate 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 ParseIntErr
impl Debug for ParseIntErr
Source§impl Display for ParseIntErr
impl Display for ParseIntErr
Source§impl Error for ParseIntErr
impl Error for ParseIntErr
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl Ord for ParseIntErr
impl Ord for ParseIntErr
Source§fn cmp(&self, other: &ParseIntErr) -> Ordering
fn cmp(&self, other: &ParseIntErr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParseIntErr
impl PartialEq for ParseIntErr
Source§impl PartialOrd for ParseIntErr
impl PartialOrd for ParseIntErr
impl Copy for ParseIntErr
impl Eq for ParseIntErr
impl StructuralPartialEq for ParseIntErr
Auto Trait Implementations§
impl Freeze for ParseIntErr
impl RefUnwindSafe for ParseIntErr
impl Send for ParseIntErr
impl Sync for ParseIntErr
impl Unpin for ParseIntErr
impl UnwindSafe for ParseIntErr
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