[][src]Enum genevo::simulation::SimResult

pub enum SimResult<A> where
    A: Algorithm
{ Intermediate(State<A>), Final(State<A>, ProcessingTimeDurationStopReason), }

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>, ProcessingTimeDurationStopReason)

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: PartialEq> PartialEq<SimResult<A>> for SimResult<A> where
    A: Algorithm
[src]

impl<A: Debug> Debug for SimResult<A> where
    A: Algorithm
[src]

Auto Trait Implementations

impl<A> Send for SimResult<A> where
    <A as Algorithm>::Output: Send

impl<A> Sync for SimResult<A> where
    <A as Algorithm>::Output: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]