pub enum ArithmeticError {
DivisionByZero,
LogOfNonPositive,
NegativeSqrt,
TrigOutOfRange,
ZeroToNonPositivePower,
NegativeToNonIntegerPower,
NegativeFactorial,
NonIntegerFactorial,
FactorialTooLarge,
}Expand description
Errors for arithmetic operations.
Variants§
DivisionByZero
LogOfNonPositive
NegativeSqrt
TrigOutOfRange
ZeroToNonPositivePower
NegativeToNonIntegerPower
NegativeFactorial
NonIntegerFactorial
FactorialTooLarge
Trait Implementations§
Source§impl Debug for ArithmeticError
impl Debug for ArithmeticError
Source§impl PartialEq for ArithmeticError
impl PartialEq 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