pub enum MathErrorKind {
Overflow,
Underflow,
PrecisionLoss,
DivisionByZero,
InvalidInput,
NotFinite,
OutOfRange,
}Expand description
Classification of mathematical errors.
Used with AstroError::MathError to distinguish between different
numerical failure modes.
Variants§
Overflow
Result exceeds representable range (too large).
Underflow
Result below representable range (too small/negative).
PrecisionLoss
Accumulated floating-point error exceeds acceptable threshold.
DivisionByZero
Attempted division by zero or near-zero value.
InvalidInput
Input value is invalid for the operation.
NotFinite
Result is NaN or infinity.
OutOfRange
Value outside valid domain (e.g., latitude > 90°).
Trait Implementations§
Source§impl Clone for MathErrorKind
impl Clone for MathErrorKind
Source§fn clone(&self) -> MathErrorKind
fn clone(&self) -> MathErrorKind
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 MathErrorKind
impl Debug for MathErrorKind
Source§impl PartialEq for MathErrorKind
impl PartialEq for MathErrorKind
impl StructuralPartialEq for MathErrorKind
Auto Trait Implementations§
impl Freeze for MathErrorKind
impl RefUnwindSafe for MathErrorKind
impl Send for MathErrorKind
impl Sync for MathErrorKind
impl Unpin for MathErrorKind
impl UnsafeUnpin for MathErrorKind
impl UnwindSafe for MathErrorKind
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