pub enum MonteCarloError {
InvalidParameter(String),
NumericalError(String),
RngError(String),
}Expand description
Error types for Monte Carlo operations.
Variants§
InvalidParameter(String)
Invalid parameter error.
NumericalError(String)
Numerical error (e.g., division by zero, overflow).
RngError(String)
RNG state error.
Trait Implementations§
Source§impl Debug for MonteCarloError
impl Debug for MonteCarloError
Source§impl Display for MonteCarloError
impl Display for MonteCarloError
Source§impl Error for MonteCarloError
impl Error for MonteCarloError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for MonteCarloError
impl RefUnwindSafe for MonteCarloError
impl Send for MonteCarloError
impl Sync for MonteCarloError
impl Unpin for MonteCarloError
impl UnwindSafe for MonteCarloError
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