Struct genetic_algorithm::fitness::placeholders::CountTrue
source · pub struct CountTrue;
Expand description
placeholder for testing and bootstrapping, not really used in practice
Trait Implementations§
source§impl Fitness for CountTrue
impl Fitness for CountTrue
type Genotype = Binary
fn calculate_for_chromosome( &mut self, chromosome: &Chromosome<Self::Genotype> ) -> Option<FitnessValue>
source§fn call_for_population(
&mut self,
population: &mut Population<Self::Genotype>,
thread_local: Option<&ThreadLocal<RefCell<Self>>>
)
fn call_for_population( &mut self, population: &mut Population<Self::Genotype>, thread_local: Option<&ThreadLocal<RefCell<Self>>> )
pass thread_local for external control of fitness caching in multithreading
fn call_for_population_single_thread( &mut self, population: &mut Population<Self::Genotype> )
source§fn call_for_population_multi_thread(
&self,
population: &mut Population<Self::Genotype>,
thread_local: &ThreadLocal<RefCell<Self>>
)
fn call_for_population_multi_thread( &self, population: &mut Population<Self::Genotype>, thread_local: &ThreadLocal<RefCell<Self>> )
pass thread_local for external control of fitness caching in multithreading
fn call_for_chromosome(&mut self, chromosome: &mut Chromosome<Self::Genotype>)
Auto Trait Implementations§
impl RefUnwindSafe for CountTrue
impl Send for CountTrue
impl Sync for CountTrue
impl Unpin for CountTrue
impl UnwindSafe for CountTrue
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