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,
}
Expand description
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
sourceimpl<G: PartialEq, F: PartialEq> PartialEq<State<G, F>> for State<G, F> where
G: Genotype,
F: Fitness,
impl<G: PartialEq, F: PartialEq> PartialEq<State<G, F>> for State<G, F> where
G: Genotype,
F: Fitness,
impl<G, F> StructuralPartialEq for State<G, F> where
G: Genotype,
F: Fitness,
Auto Trait Implementations
impl<G, F> RefUnwindSafe for State<G, F> where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, F> !Send for State<G, F>
impl<G, F> !Sync for State<G, F>
impl<G, F> Unpin for State<G, F> where
F: Unpin,
G: Unpin,
impl<G, F> UnwindSafe for State<G, F> where
F: UnwindSafe,
G: UnwindSafe + RefUnwindSafe,
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more