pub enum ArithmeticError {
Undefined,
Underflow,
Overflow,
}
Expand description
Error raised when a checked arithmetic operation fails.
Variants§
Trait Implementations§
Source§impl Clone for ArithmeticError
impl Clone for ArithmeticError
Source§fn clone(&self) -> ArithmeticError
fn clone(&self) -> ArithmeticError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ArithmeticError
impl Debug for ArithmeticError
Source§impl Display for ArithmeticError
impl Display for ArithmeticError
Source§impl Error for ArithmeticError
impl Error for ArithmeticError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl Hash for ArithmeticError
impl Hash for ArithmeticError
Source§impl PartialEq for ArithmeticError
impl PartialEq for ArithmeticError
impl Copy for ArithmeticError
impl Eq for ArithmeticError
impl StructuralPartialEq for ArithmeticError
Auto Trait Implementations§
impl Freeze for ArithmeticError
impl RefUnwindSafe for ArithmeticError
impl Send for ArithmeticError
impl Sync for ArithmeticError
impl Unpin for ArithmeticError
impl UnwindSafe for ArithmeticError
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