#[non_exhaustive]pub enum IntegrationError<E> {
Derivative {
t_s: f64,
source: E,
},
StepTooSmall {
t_s: f64,
step_s: f64,
},
NotFinite {
t_s: f64,
},
StepLimit {
t_s: f64,
limit: u64,
},
EventNotFinite {
index: usize,
t_s: f64,
},
Backward {
t_s: f64,
t_stop_s: f64,
},
Settings(SettingsError),
}Expand description
Why an integration stopped short. The integrator stays at its last accepted step, and a later
Integrator::advance may resume from there.
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.
Derivative
The system’s derivative failed.
StepTooSmall
The adaptive step fell below the rounding of t: the solution changes faster than the
tolerances allow, or the system is stiff or singular there.
NotFinite
The state, its derivative or the step stopped being finite and a shorter step didn’t help.
StepLimit
The integrator’s step limit was reached. Integrator::set_step_limit can raise it.
Fields
EventNotFinite
An event function returned a non-finite value, or its crossing couldn’t be located.
Backward
A stop time before the current time, or not a number.
Settings(SettingsError)
A bad setting or tolerance weight.
Trait Implementations§
Source§impl<E: Clone> Clone for IntegrationError<E>
impl<E: Clone> Clone for IntegrationError<E>
Source§fn clone(&self) -> IntegrationError<E>
fn clone(&self) -> IntegrationError<E>
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<E: Debug> Debug for IntegrationError<E>
impl<E: Debug> Debug for IntegrationError<E>
Source§impl<E> Display for IntegrationError<E>
impl<E> Display for IntegrationError<E>
Source§impl<E> Error for IntegrationError<E>
impl<E> Error for IntegrationError<E>
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<E> From<SettingsError> for IntegrationError<E>
impl<E> From<SettingsError> for IntegrationError<E>
Source§fn from(source: SettingsError) -> Self
fn from(source: SettingsError) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for IntegrationError<E>
impl<E: PartialEq> PartialEq for IntegrationError<E>
Source§fn eq(&self, other: &IntegrationError<E>) -> bool
fn eq(&self, other: &IntegrationError<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: PartialEq> StructuralPartialEq for IntegrationError<E>
Auto Trait Implementations§
impl<E> Freeze for IntegrationError<E>where
E: Freeze,
impl<E> RefUnwindSafe for IntegrationError<E>where
E: RefUnwindSafe,
impl<E> Send for IntegrationError<E>where
E: Send,
impl<E> Sync for IntegrationError<E>where
E: Sync,
impl<E> Unpin for IntegrationError<E>where
E: Unpin,
impl<E> UnsafeUnpin for IntegrationError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for IntegrationError<E>where
E: UnwindSafe,
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