#[non_exhaustive]pub enum StopReason {
EnergyDecay {
ratio_db: f64,
},
MaxTimesteps,
Aborted,
Diverged,
}Expand description
Why Engine::run_until stopped.
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.
EnergyDecay
The excitation was over and W/W_max fell below the threshold;
ratio_db = 10·log10(W/W_max) at the deciding check
(-∞ if W ≤ 0).
MaxTimesteps
max_timesteps steps were run.
Aborted
The progress callback returned ControlFlow::Break.
Diverged
The energy became NaN or infinite (unstable setup, e.g. an operator that adds energy without bound).
Trait Implementations§
Source§impl Clone for StopReason
impl Clone for StopReason
impl Copy for StopReason
Source§impl Debug for StopReason
impl Debug for StopReason
Source§impl PartialEq for StopReason
impl PartialEq for StopReason
impl StructuralPartialEq for StopReason
Auto Trait Implementations§
impl Freeze for StopReason
impl RefUnwindSafe for StopReason
impl Send for StopReason
impl Sync for StopReason
impl Unpin for StopReason
impl UnsafeUnpin for StopReason
impl UnwindSafe for StopReason
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