pub struct BitChromosome {
pub genes: FixedBitSet,
pub fitness_score: Option<FitnessValue>,
pub genes_hash: Option<GenesHash>,
pub age: usize,
pub reference_id: usize,
}
Fields§
§genes: FixedBitSet
§fitness_score: Option<FitnessValue>
§genes_hash: Option<GenesHash>
§age: usize
§reference_id: usize
Trait Implementations§
Source§impl Chromosome for Bit
impl Chromosome for Bit
fn age(&self) -> usize
fn reset_age(&mut self)
fn increment_age(&mut self)
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 Freeze for Bit
impl RefUnwindSafe for Bit
impl Send for Bit
impl Sync for Bit
impl Unpin for Bit
impl UnwindSafe for Bit
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