pub enum ArithErr {
TooLargeRhs(usize),
Overflow(usize, ArithOp, usize),
}Expand description
An arithmetic error.
Either an overflow containing the lhs, op, and rhs, or a case where the rhs is too large and that rhs value.
Variants§
TooLargeRhs(usize)
The right-hand side of the operation is too large for the operation.
Overflow(usize, ArithOp, usize)
An overflow would occur.
Trait Implementations§
impl Copy for ArithErr
impl Eq for ArithErr
impl StructuralPartialEq for ArithErr
Auto Trait Implementations§
impl Freeze for ArithErr
impl RefUnwindSafe for ArithErr
impl Send for ArithErr
impl Sync for ArithErr
impl Unpin for ArithErr
impl UnwindSafe for ArithErr
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