pub enum BigIntError {
InvalidSyntax,
InvalidRadix(u32),
DivisionByZero,
NegativeExponent,
BigIntTooLarge,
AllocationTooLarge,
ShiftTooLarge,
}Expand description
A failure produced by the BigInt value layer.
Variants§
InvalidSyntax
A textual value is not a valid BigInt.
InvalidRadix(u32)
A formatting or parsing radix is outside 2..=36.
DivisionByZero
Division or remainder by zero was requested.
NegativeExponent
Exponentiation was requested with a negative exponent.
BigIntTooLarge
The result would exceed the upstream BigInt allocation limit.
AllocationTooLarge
An operation tried to allocate an input-sized BigInt whose normalized representation came from QuickJS’s one-limb extension bypass.
ShiftTooLarge
A left shift would exceed the upstream BigInt allocation limit.
Trait Implementations§
Source§impl Clone for BigIntError
impl Clone for BigIntError
impl Copy for BigIntError
Source§impl Debug for BigIntError
impl Debug for BigIntError
Source§impl Display for BigIntError
impl Display for BigIntError
impl Eq for BigIntError
Source§impl Error for BigIntError
impl Error for BigIntError
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
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 PartialEq for BigIntError
impl PartialEq for BigIntError
impl StructuralPartialEq for BigIntError
Auto Trait Implementations§
impl Freeze for BigIntError
impl RefUnwindSafe for BigIntError
impl Send for BigIntError
impl Sync for BigIntError
impl Unpin for BigIntError
impl UnsafeUnpin for BigIntError
impl UnwindSafe for BigIntError
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