Struct bnum::errors::ParseIntError
source · pub struct ParseIntError { /* private fields */ }
Expand description
The error type that is returned when parsing an integer from an invalid source.
This error can occur when the from_str_radix
or FromStr::from_str
methods of e.g. BUint
are called with an invalid input string.
Implementations§
source§impl ParseIntError
impl ParseIntError
sourcepub const fn kind(&self) -> &IntErrorKind
pub const fn kind(&self) -> &IntErrorKind
Returns the enum IntErrorKind
, which shows the reason that the parsing input was invalid.
Trait Implementations§
source§impl Clone for ParseIntError
impl Clone for ParseIntError
source§fn clone(&self) -> ParseIntError
fn clone(&self) -> ParseIntError
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 ParseIntError
impl Debug for ParseIntError
source§impl Display for ParseIntError
impl Display for ParseIntError
source§impl PartialEq for ParseIntError
impl PartialEq for ParseIntError
source§fn eq(&self, other: &ParseIntError) -> bool
fn eq(&self, other: &ParseIntError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseIntError
impl StructuralEq for ParseIntError
impl StructuralPartialEq for ParseIntError
Auto Trait Implementations§
impl RefUnwindSafe for ParseIntError
impl Send for ParseIntError
impl Sync for ParseIntError
impl Unpin for ParseIntError
impl UnwindSafe for ParseIntError
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