pub enum MicroStepResult<E, M: Model<E>> {
Continue(UncheckedActiveExecutor<E, M>),
Complete(ActiveExecutorContext<E, M>, MicroStepStatus),
}Expand description
The result of a micro-step execution.
This enum dictates the next phase of the simulation, differentiating between
whether execution should continue to the next micro-step (Continue) or
terminate the current tick (Complete).
Variants§
Continue(UncheckedActiveExecutor<E, M>)
Indicates that the simulation can continue. The UncheckedActiveExecutor
is passed forward to be validated by the assigned ContinueStrategy.
Complete(ActiveExecutorContext<E, M>, MicroStepStatus)
Indicates that the current tick is finished. The ActiveExecutorContext
and the final MicroStepStatus are returned to finalize the tick’s state.
Auto Trait Implementations§
impl<E, M> Freeze for MicroStepResult<E, M>
impl<E, M> !RefUnwindSafe for MicroStepResult<E, M>
impl<E, M> !Send for MicroStepResult<E, M>
impl<E, M> !Sync for MicroStepResult<E, M>
impl<E, M> Unpin for MicroStepResult<E, M>where
E: Unpin,
impl<E, M> UnsafeUnpin for MicroStepResult<E, M>
impl<E, M> !UnwindSafe for MicroStepResult<E, M>
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> 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