pub enum RootFinderError {
NotConverged(u32, f64),
NotInBracket,
Callback(CallbackError),
}Expand description
Error returned by root-finding algorithms.
Variants§
NotConverged(u32, f64)
The algorithm did not converge within the maximum number of iterations.
NotInBracket
The root is not within the given bracket.
Callback(CallbackError)
The objective function returned an error.
Trait Implementations§
Source§impl Debug for RootFinderError
impl Debug for RootFinderError
Source§impl Display for RootFinderError
impl Display for RootFinderError
Source§impl Error for RootFinderError
impl Error for RootFinderError
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<CallbackError> for RootFinderError
impl From<CallbackError> for RootFinderError
Source§fn from(source: CallbackError) -> RootFinderError
fn from(source: CallbackError) -> RootFinderError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RootFinderError
impl !RefUnwindSafe for RootFinderError
impl Send for RootFinderError
impl Sync for RootFinderError
impl Unpin for RootFinderError
impl UnsafeUnpin for RootFinderError
impl !UnwindSafe for RootFinderError
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