pub struct ArithErr(pub usize, pub ArithOp, pub usize);Expand description
An arithmetic operation which would cause an “overflow.”
Divide-by-zero errors and exponentiation to powers larger than u32::MAX are considered
overflows.
Tuple Fields§
§0: usize§1: ArithOp§2: usizeTrait Implementations§
Source§impl Error for ArithErr
Available on crate feature std only.
impl Error for ArithErr
Available on crate feature
std only.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()
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