pub enum SolMathError {
DomainError,
Overflow,
DivisionByZero,
NoConvergence,
}Expand description
Errors returned by fallible solmath operations.
Variants§
DomainError
Input outside the mathematical domain (e.g. ln of zero or negative)
Overflow
Result would overflow the representable range
DivisionByZero
Division by zero
NoConvergence
Iterative method did not converge (e.g. implied_vol)
Trait Implementations§
Source§impl Clone for SolMathError
impl Clone for SolMathError
Source§fn clone(&self) -> SolMathError
fn clone(&self) -> SolMathError
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 SolMathError
impl Debug for SolMathError
Source§impl PartialEq for SolMathError
impl PartialEq for SolMathError
Source§fn eq(&self, other: &SolMathError) -> bool
fn eq(&self, other: &SolMathError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SolMathError
impl Eq for SolMathError
impl StructuralPartialEq for SolMathError
Auto Trait Implementations§
impl Freeze for SolMathError
impl RefUnwindSafe for SolMathError
impl Send for SolMathError
impl Sync for SolMathError
impl Unpin for SolMathError
impl UnsafeUnpin for SolMathError
impl UnwindSafe for SolMathError
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