pub enum ArithmeticFailure {
DivisionByZero,
ModuloByZero,
RoundingNecessary,
}Expand description
The arithmetic failures the executor raises (ADR-0307), typed so a surface maps them without reading the message. Each renders exactly as the stringly error it replaced did.
Variants§
DivisionByZero
Integer or duration division by zero: type error: / by zero.
ModuloByZero
Integer modulo by zero: type error: % by zero.
RoundingNecessary
round(x, precision, 'UNNECESSARY') on a value that needs rounding:
ArithmeticError: rounding necessary.
Implementations§
Trait Implementations§
Source§impl Clone for ArithmeticFailure
impl Clone for ArithmeticFailure
impl Copy for ArithmeticFailure
Source§impl Debug for ArithmeticFailure
impl Debug for ArithmeticFailure
Source§impl Display for ArithmeticFailure
impl Display for ArithmeticFailure
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
The bare legacy payload (Self::detail); the enclosing
Error::Arithmetic composes the Type-class prefix (ADR-0338).
impl Eq for ArithmeticFailure
Source§impl PartialEq for ArithmeticFailure
impl PartialEq for ArithmeticFailure
impl StructuralPartialEq for ArithmeticFailure
Auto Trait Implementations§
impl Forget for ArithmeticFailure
impl Freeze for ArithmeticFailure
impl Move for ArithmeticFailure
impl RefUnwindSafe for ArithmeticFailure
impl Send for ArithmeticFailure
impl Sync for ArithmeticFailure
impl Unpin for ArithmeticFailure
impl UnsafeUnpin for ArithmeticFailure
impl UnwindSafe for ArithmeticFailure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.