pub enum OptimizationError {
EmptyInput,
DimensionMismatch,
NonFiniteInput,
InvalidConfig,
MaxIterationsExceeded,
}Expand description
Error type for optimization routines.
Variants§
EmptyInput
Input vectors are empty.
DimensionMismatch
Input dimensions are incompatible.
NonFiniteInput
Non-finite values were observed.
InvalidConfig
Invalid optimizer configuration.
MaxIterationsExceeded
Optimizer exceeded iteration budget.
Trait Implementations§
Source§impl Clone for OptimizationError
impl Clone for OptimizationError
Source§fn clone(&self) -> OptimizationError
fn clone(&self) -> OptimizationError
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 OptimizationError
impl Debug for OptimizationError
Source§impl Display for OptimizationError
impl Display for OptimizationError
Source§impl Error for OptimizationError
impl Error for OptimizationError
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 IntoNabledError for OptimizationError
impl IntoNabledError for OptimizationError
Source§fn into_nabled_error(self) -> NabledError
fn into_nabled_error(self) -> NabledError
Convert domain-specific error into shared taxonomy.
Source§impl PartialEq for OptimizationError
impl PartialEq for OptimizationError
impl Copy for OptimizationError
impl Eq for OptimizationError
impl StructuralPartialEq for OptimizationError
Auto Trait Implementations§
impl Freeze for OptimizationError
impl RefUnwindSafe for OptimizationError
impl Send for OptimizationError
impl Sync for OptimizationError
impl Unpin for OptimizationError
impl UnsafeUnpin for OptimizationError
impl UnwindSafe for OptimizationError
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