pub trait Selection<G>: Default {
// Required method
fn select<'pop, R>(
&self,
population: &'pop [Chromosome<G>],
count: usize,
rng: &mut R,
) -> Vec<&'pop Chromosome<G>>
where R: Rng + ?Sized;
}Expand description
Trait for selecting a subset of the population
Required Methods§
Sourcefn select<'pop, R>(
&self,
population: &'pop [Chromosome<G>],
count: usize,
rng: &mut R,
) -> Vec<&'pop Chromosome<G>>
fn select<'pop, R>( &self, population: &'pop [Chromosome<G>], count: usize, rng: &mut R, ) -> Vec<&'pop Chromosome<G>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.