pub enum SimResult<A> where
    A: Algorithm
{ Intermediate(State<A>), Final(State<A>, ProcessingTimeDurationStopReason), }
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>, 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

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.