pub enum BreakEternityError {
IterationFailedConverging {
z: f64,
},
ParseError {
parsed: String,
error: ParseFloatError,
},
LambertWError,
Arithmetic(ArithmeticError),
}Expand description
Error type for all errors in this crate.
Variants§
IterationFailedConverging
An error that occurs when f_gamma and lambertw fails to converge a number (more than 100 iterations).
ParseError
An error that occurs when a String cannot be parsed to a Decimal.
Fields
§
error: ParseFloatErrorThe error that occurred.
LambertWError
An error that occurs when lambertw is called with a number less than -1.
Arithmetic(ArithmeticError)
An arithmetic error from a checked_* operation.
Trait Implementations§
Source§impl Debug for BreakEternityError
impl Debug for BreakEternityError
Source§impl Display for BreakEternityError
impl Display for BreakEternityError
Source§impl Error for BreakEternityError
impl Error for BreakEternityError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ArithmeticError> for BreakEternityError
impl From<ArithmeticError> for BreakEternityError
Source§fn from(source: ArithmeticError) -> Self
fn from(source: ArithmeticError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BreakEternityError
impl RefUnwindSafe for BreakEternityError
impl Send for BreakEternityError
impl Sync for BreakEternityError
impl Unpin for BreakEternityError
impl UnsafeUnpin for BreakEternityError
impl UnwindSafe for BreakEternityError
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