pub enum MinimizerError {
NotConverged {
iterations: u32,
x: f64,
value: f64,
},
Callback(LoxError),
}Expand description
Error returned by bracketed minimization algorithms.
Variants§
NotConverged
The algorithm did not converge within the maximum number of iterations.
Fields
Callback(LoxError)
The objective function returned an error.
Trait Implementations§
Source§impl Debug for MinimizerError
impl Debug for MinimizerError
Source§impl Display for MinimizerError
impl Display for MinimizerError
Source§impl Error for MinimizerError
impl Error for MinimizerError
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 !RefUnwindSafe for MinimizerError
impl !UnwindSafe for MinimizerError
impl Freeze for MinimizerError
impl Send for MinimizerError
impl Sync for MinimizerError
impl Unpin for MinimizerError
impl UnsafeUnpin for MinimizerError
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