pub enum ArithmeticError {
Overflow,
Underflow,
DivisionByZero,
ScaleExceeded,
}Expand description
Error returned when an arithmetic operation fails.
Variants§
Overflow
Result exceeds maximum representable value.
Underflow
Result is smaller than minimum representable value.
DivisionByZero
Division by zero attempted.
ScaleExceeded
Scale exceeds maximum precision.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArithmeticError
impl Debug for ArithmeticError
Source§impl<'de> Deserialize<'de> for ArithmeticError
impl<'de> Deserialize<'de> for ArithmeticError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ArithmeticError
impl Display for ArithmeticError
Source§impl PartialEq for ArithmeticError
impl PartialEq for ArithmeticError
Source§impl Serialize for ArithmeticError
impl Serialize 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