#[non_exhaustive]pub enum OptimError {
ConvergenceFailure {
iterations: usize,
},
NonFiniteValue {
context: &'static str,
},
InvalidParameter {
name: &'static str,
reason: &'static str,
},
BracketError,
CoreError(CoreError),
}Expand description
All errors returned by scivex-optim.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConvergenceFailure
An iterative algorithm did not converge within the iteration budget.
NonFiniteValue
A computation produced a non-finite value (NaN or infinity).
InvalidParameter
A parameter has an invalid value.
BracketError
The bracket does not contain a root (signs are not opposite).
CoreError(CoreError)
An error propagated from scivex-core.
Trait Implementations§
Source§impl Clone for OptimError
impl Clone for OptimError
Source§fn clone(&self) -> OptimError
fn clone(&self) -> OptimError
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 OptimError
impl Debug for OptimError
Source§impl Display for OptimError
impl Display for OptimError
Source§impl Error for OptimError
impl Error for OptimError
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()
Source§impl From<CoreError> for OptimError
impl From<CoreError> for OptimError
Source§impl PartialEq for OptimError
impl PartialEq for OptimError
impl StructuralPartialEq for OptimError
Auto Trait Implementations§
impl Freeze for OptimError
impl RefUnwindSafe for OptimError
impl Send for OptimError
impl Sync for OptimError
impl Unpin for OptimError
impl UnsafeUnpin for OptimError
impl UnwindSafe for OptimError
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