pub struct MultiListChromosome<T: Allele> {
pub genes: Vec<T>,
pub fitness_score: Option<FitnessValue>,
pub genes_hash: Option<GenesHash>,
pub age: usize,
}
Fields§
§genes: Vec<T>
§fitness_score: Option<FitnessValue>
§genes_hash: Option<GenesHash>
§age: usize
Trait Implementations§
Source§impl<T: Allele> Chromosome for Vector<T>
impl<T: Allele> Chromosome for Vector<T>
fn age(&self) -> usize
fn reset_age(&mut self)
fn increment_age(&mut self)
fn set_age(&mut self, age: usize)
fn is_offspring(&self) -> bool
fn fitness_score(&self) -> Option<FitnessValue>
fn set_fitness_score(&mut self, fitness_score: Option<FitnessValue>)
fn genes_hash(&self) -> Option<GenesHash>
fn set_genes_hash(&mut self, genes_hash: Option<GenesHash>)
fn reset_state(&mut self, genes_hash: Option<GenesHash>)
fn copy_state(&mut self, other: &Self)
Auto Trait Implementations§
impl<T> Freeze for Vector<T>
impl<T> RefUnwindSafe for Vector<T>where
T: RefUnwindSafe,
impl<T> Send for Vector<T>
impl<T> Sync for Vector<T>
impl<T> Unpin for Vector<T>where
T: Unpin,
impl<T> UnwindSafe for Vector<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more