pub enum ArithmeticErrorKind {
Undefined,
DivisionByZero,
NegativeBase,
OutOfDomain,
IterationDiverged,
}Expand description
Identifies the category of an arithmetic error.
Variants§
Undefined
Operation is mathematically undefined (e.g., 0/0, +inf + -inf).
DivisionByZero
Division by zero.
NegativeBase
Negative base with non-integer exponent.
OutOfDomain
Domain error (e.g., ln of non-positive, lambertw for z < -1/e).
IterationDiverged
Numerical iteration diverged.
Trait Implementations§
Source§impl Clone for ArithmeticErrorKind
impl Clone for ArithmeticErrorKind
Source§fn clone(&self) -> ArithmeticErrorKind
fn clone(&self) -> ArithmeticErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArithmeticErrorKind
impl Debug for ArithmeticErrorKind
Source§impl Hash for ArithmeticErrorKind
impl Hash for ArithmeticErrorKind
Source§impl PartialEq for ArithmeticErrorKind
impl PartialEq for ArithmeticErrorKind
Source§fn eq(&self, other: &ArithmeticErrorKind) -> bool
fn eq(&self, other: &ArithmeticErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ArithmeticErrorKind
impl Eq for ArithmeticErrorKind
impl StructuralPartialEq for ArithmeticErrorKind
Auto Trait Implementations§
impl Freeze for ArithmeticErrorKind
impl RefUnwindSafe for ArithmeticErrorKind
impl Send for ArithmeticErrorKind
impl Sync for ArithmeticErrorKind
impl Unpin for ArithmeticErrorKind
impl UnsafeUnpin for ArithmeticErrorKind
impl UnwindSafe for ArithmeticErrorKind
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.