#[repr(u64)]pub enum NSCalculationError {
None = 0,
PrecisionLoss = 1,
Underflow = 2,
Overflow = 3,
DivideByZero = 4,
}Expand description
Calculation error constants used to describe an error in exceptionDuringOperation:error:leftOperand:rightOperand:.
Variants§
None = 0
No error occurred.
PrecisionLoss = 1
The number can’t be represented in 38 significant digits.
Underflow = 2
The number is too small to represent.
Overflow = 3
The number is too large to represent.
DivideByZero = 4
The caller tried to divide by 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NSCalculationError
impl RefUnwindSafe for NSCalculationError
impl Send for NSCalculationError
impl Sync for NSCalculationError
impl Unpin for NSCalculationError
impl UnwindSafe for NSCalculationError
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