Enum bitint::ParseBitintError
source · #[non_exhaustive]pub enum ParseBitintError {
Parse(ParseIntError),
Range(RangeError),
}
Expand description
The error type returned when parsing a string to a bitint
fails.
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.
Parse(ParseIntError)
Parsing failed because parsing to the primitive type failed.
Range(RangeError)
Parsing failed because the primitive value was out of range.
Trait Implementations§
source§impl Debug for ParseBitintError
impl Debug for ParseBitintError
source§impl Display for ParseBitintError
impl Display for ParseBitintError
source§impl From<ParseIntError> for ParseBitintError
impl From<ParseIntError> for ParseBitintError
source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<RangeError> for ParseBitintError
impl From<RangeError> for ParseBitintError
source§fn from(value: RangeError) -> Self
fn from(value: RangeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ParseBitintError
impl Send for ParseBitintError
impl Sync for ParseBitintError
impl Unpin for ParseBitintError
impl UnwindSafe for ParseBitintError
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