Enum genevo::simulation::SimResult
source · [−]pub enum SimResult<A> where
A: Algorithm, {
Intermediate(State<A>),
Final(State<A>, ProcessingTime, Duration, StopReason),
}
Expand description
The result of running a step in the Simulation
.
Variants
Intermediate(State<A>)
The step was successful, but the simulation has not finished.
The State
contains the result of the last processed generation.
Final(State<A>, ProcessingTime, Duration, StopReason)
The simulation is finished, and this is the final result.
The parameters are:
- The
State
of last processed generation. - The total processing time of the simulation.
- The
StopReason
is the matching criteria why the simulation stopped.
Trait Implementations
impl<A> StructuralPartialEq for SimResult<A> where
A: Algorithm,
Auto Trait Implementations
impl<A> RefUnwindSafe for SimResult<A> where
<A as Algorithm>::Output: RefUnwindSafe,
impl<A> Send for SimResult<A> where
<A as Algorithm>::Output: Send,
impl<A> Sync for SimResult<A> where
<A as Algorithm>::Output: Sync,
impl<A> Unpin for SimResult<A> where
<A as Algorithm>::Output: Unpin,
impl<A> UnwindSafe for SimResult<A> where
<A as Algorithm>::Output: UnwindSafe,
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