#[non_exhaustive]pub enum Stop {
Budget,
Stagnation,
CmaEs(Termination),
}Expand description
Why a run ended.
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.
Budget
The Budget said stop.
Stagnation
An algorithm-specific stagnation criterion fired (for example RMHC’s restart limit, the diffusion model’s stagnation counters, or DE’s population collapse).
CmaEs(Termination)
A CMA-ES termination criterion from the tutorial’s Appendix B.3 fired.
Trait Implementations§
impl Copy for Stop
impl Eq for Stop
impl StructuralPartialEq for Stop
Auto Trait Implementations§
impl Forget for Stop
impl Freeze for Stop
impl Move for Stop
impl RefUnwindSafe for Stop
impl Send for Stop
impl Sync for Stop
impl Unpin for Stop
impl UnsafeUnpin for Stop
impl UnwindSafe for Stop
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