Expand description
The Evaluated
type marks an individual as evaluated. Mostly this means
that the genetic::Fitness
value has been calculated for this individual.
This structure is used to store the fitness value, so that the fitness value needs to be calculated only one time for each individual. For simulation with more sophisticated fitness calculations this can improve performance.
Fields
genome: G
The genetic::Genotype
that has been evaluated.
fitness: F
The genetic::Fitness
value of the evaluated genetic::Genotype
.
Trait Implementations
sourceimpl<G: PartialEq, F: PartialEq> PartialEq<Evaluated<G, F>> for Evaluated<G, F> where
G: Genotype,
F: Fitness,
impl<G: PartialEq, F: PartialEq> PartialEq<Evaluated<G, F>> for Evaluated<G, F> where
G: Genotype,
F: Fitness,
impl<G: Eq, F: Eq> Eq for Evaluated<G, F> where
G: Genotype,
F: Fitness,
impl<G, F> StructuralEq for Evaluated<G, F> where
G: Genotype,
F: Fitness,
impl<G, F> StructuralPartialEq for Evaluated<G, F> where
G: Genotype,
F: Fitness,
Auto Trait Implementations
impl<G, F> RefUnwindSafe for Evaluated<G, F> where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, F> Send for Evaluated<G, F> where
F: Send,
impl<G, F> Sync for Evaluated<G, F> where
F: Sync,
impl<G, F> Unpin for Evaluated<G, F> where
F: Unpin,
G: Unpin,
impl<G, F> UnwindSafe for Evaluated<G, F> where
F: UnwindSafe,
G: 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
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