Enum genevo::termination::StopFlag
source · [−]pub enum StopFlag {
StopNow(StopReason),
Continue,
}
Expand description
The StopFlag
is the result of the Termination
function. It tells
the simulation whether it shall stop or if it can continue.
If the StopFlag
indicates that the simulation must stop, also the reason
(StopReason
) must be specified.
Variants
StopNow(StopReason)
Flag for ‘Stop the simulation now’.
Continue
Flag for ‘Continue with the simulation’.
Trait Implementations
impl StructuralPartialEq for StopFlag
Auto Trait Implementations
impl RefUnwindSafe for StopFlag
impl Send for StopFlag
impl Sync for StopFlag
impl Unpin for StopFlag
impl UnwindSafe for StopFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more