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§
Source§impl Debug for ParseNumError
impl Debug for ParseNumError
Source§impl Display for ParseNumError
impl Display for ParseNumError
Source§impl Error for ParseNumError
impl Error for ParseNumError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ParseBigIntError> for ParseNumError
impl From<ParseBigIntError> for ParseNumError
Source§fn from(e: ParseBigIntError) -> Self
fn from(e: ParseBigIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseNumError
impl PartialEq for ParseNumError
impl StructuralPartialEq for ParseNumError
Auto Trait Implementations§
impl Freeze for ParseNumError
impl RefUnwindSafe for ParseNumError
impl Send for ParseNumError
impl Sync for ParseNumError
impl Unpin for ParseNumError
impl UnwindSafe for ParseNumError
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