Enum num_decimal::ParseNumError
source · [−]pub enum ParseNumError {
InvalidStrError(String),
ParseIntError(ParseBigIntError),
}
Expand description
An error used for conveying parsing failures.
Variants
InvalidStrError(String)
A string could not get parsed as a Num
.
ParseIntError(ParseBigIntError)
An integer value could not get parsed.
Trait Implementations
sourceimpl Debug for ParseNumError
impl Debug for ParseNumError
sourceimpl Display for ParseNumError
impl Display for ParseNumError
sourceimpl Error for ParseNumError
impl Error for ParseNumError
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ParseBigIntError> for ParseNumError
impl From<ParseBigIntError> for ParseNumError
sourcefn from(e: ParseBigIntError) -> Self
fn from(e: ParseBigIntError) -> Self
Performs the conversion.
sourceimpl PartialEq<ParseNumError> for ParseNumError
impl PartialEq<ParseNumError> for ParseNumError
sourcefn eq(&self, other: &ParseNumError) -> bool
fn eq(&self, other: &ParseNumError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParseNumError) -> bool
fn ne(&self, other: &ParseNumError) -> bool
This method tests for !=
.
impl StructuralPartialEq for ParseNumError
Auto Trait Implementations
impl RefUnwindSafe for ParseNumError
impl Send for ParseNumError
impl Sync for ParseNumError
impl Unpin for ParseNumError
impl UnwindSafe for ParseNumError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more