pub struct AlwaysContinueStrategy;Expand description
A default strategy that unconditionally allows simulation continuation.
Since this strategy imposes no termination criteria, the simulation proceeds
until the global stop condition (should_stop) is met or the model’s
internal logic completes naturally.
Implementations§
Trait Implementations§
Source§impl Clone for AlwaysContinueStrategy
impl Clone for AlwaysContinueStrategy
Source§fn clone(&self) -> AlwaysContinueStrategy
fn clone(&self) -> AlwaysContinueStrategy
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, M: Model<E>, RunnerError> ContinueStrategy<E, M, RunnerError> for AlwaysContinueStrategy
impl<E, M: Model<E>, RunnerError> ContinueStrategy<E, M, RunnerError> for AlwaysContinueStrategy
Source§fn handle_micro_step_continue(
&mut self,
_model: &M,
unchecked: UncheckedActiveExecutor<E, M>,
) -> ContinuousStrategyResult<E, M, Self::Err>
fn handle_micro_step_continue( &mut self, _model: &M, unchecked: UncheckedActiveExecutor<E, M>, ) -> ContinuousStrategyResult<E, M, Self::Err>
Always returns Ok, authorizing the execution engine to proceed to the
next micro-step.
Auto Trait Implementations§
impl Freeze for AlwaysContinueStrategy
impl RefUnwindSafe for AlwaysContinueStrategy
impl Send for AlwaysContinueStrategy
impl Sync for AlwaysContinueStrategy
impl Unpin for AlwaysContinueStrategy
impl UnsafeUnpin for AlwaysContinueStrategy
impl UnwindSafe for AlwaysContinueStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more