pub enum NumraError {
Linalg(LinalgError),
Convergence(ConvergenceError),
InvalidInput(String),
StepSizeTooSmall {
h: f64,
h_min: f64,
},
MaxIterations {
iterations: usize,
max: usize,
},
Stiffness {
t: f64,
message: String,
},
EventTermination {
t: f64,
event_index: usize,
},
Optimization(OptimizationError),
}Expand description
Errors that can occur in Numra operations.
Variants§
Linalg(LinalgError)
Linear algebra error
Convergence(ConvergenceError)
Convergence failure
InvalidInput(String)
Invalid input
StepSizeTooSmall
Step size became too small
MaxIterations
Maximum iterations exceeded
Stiffness
Integration reached a singularity or stiffness
EventTermination
Event caused termination
Optimization(OptimizationError)
Optimization error
Trait Implementations§
Source§impl Clone for NumraError
impl Clone for NumraError
Source§fn clone(&self) -> NumraError
fn clone(&self) -> NumraError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NumraError
impl Debug for NumraError
Source§impl Display for NumraError
impl Display for NumraError
Source§impl Error for NumraError
Available on crate feature std only.
impl Error for NumraError
Available on crate feature
std only.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<ConvergenceError> for NumraError
impl From<ConvergenceError> for NumraError
Source§fn from(e: ConvergenceError) -> Self
fn from(e: ConvergenceError) -> Self
Converts to this type from the input type.
Source§impl From<LinalgError> for NumraError
impl From<LinalgError> for NumraError
Source§fn from(e: LinalgError) -> Self
fn from(e: LinalgError) -> Self
Converts to this type from the input type.
Source§impl From<OptimizationError> for NumraError
impl From<OptimizationError> for NumraError
Source§fn from(e: OptimizationError) -> Self
fn from(e: OptimizationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NumraError
impl PartialEq for NumraError
Source§fn eq(&self, other: &NumraError) -> bool
fn eq(&self, other: &NumraError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NumraError
Auto Trait Implementations§
impl Freeze for NumraError
impl RefUnwindSafe for NumraError
impl Send for NumraError
impl Sync for NumraError
impl Unpin for NumraError
impl UnsafeUnpin for NumraError
impl UnwindSafe for NumraError
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