[][src]Struct genevo::ga::State

pub struct State<G, F> where
    G: Genotype,
    F: Fitness
{ pub evaluated_population: EvaluatedPopulation<G, F>, pub best_solution: BestSolution<G, F>, pub processing_time: ProcessingTime, }

The State struct holds the results of one pass of the genetic algorithm loop, i.e. the processing of the evolution from one generation to the next generation.

Fields

evaluated_population: EvaluatedPopulation<G, F>

The evaluated population of the current generation.

best_solution: BestSolution<G, F>

Best solution of this generation.

processing_time: ProcessingTime

Processing time for this generation. In case of parallel processing it is the accumulated time spent by each thread.

Trait Implementations

impl<G: PartialEq, F: PartialEq> PartialEq<State<G, F>> for State<G, F> where
    G: Genotype,
    F: Fitness
[src]

impl<G: Clone, F: Clone> Clone for State<G, F> where
    G: Genotype,
    F: Fitness
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<G: Debug, F: Debug> Debug for State<G, F> where
    G: Genotype,
    F: Fitness
[src]

Auto Trait Implementations

impl<G, F> !Send for State<G, F>

impl<G, F> !Sync for State<G, F>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]