Struct genetic_algorithm::fitness::placeholders::Countdown
source · pub struct Countdown<G: Genotype>(/* private fields */);Expand description
placeholder for testing and bootstrapping, not really used in practice
Implementations§
Trait Implementations§
source§impl<G: Genotype> Fitness for Countdown<G>
impl<G: Genotype> Fitness for Countdown<G>
type Genotype = G
fn calculate_for_chromosome( &mut self, _chromosome: &Chromosome<Self::Genotype>, ) -> Option<FitnessValue>
fn call_for_state_population<S: StrategyState<Self::Genotype>>( &mut self, state: &mut S, thread_local: Option<&ThreadLocal<RefCell<Self>>>, )
fn call_for_state_chromosome<S: StrategyState<Self::Genotype>>( &mut self, state: &mut S, )
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_chromosome(&mut self, chromosome: &mut Chromosome<Self::Genotype>)
Auto Trait Implementations§
impl<G> Freeze for Countdown<G>
impl<G> RefUnwindSafe for Countdown<G>where
G: RefUnwindSafe,
impl<G> Send for Countdown<G>
impl<G> Sync for Countdown<G>
impl<G> Unpin for Countdown<G>where
G: Unpin,
impl<G> UnwindSafe for Countdown<G>where
G: 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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