pub trait Selection {
// Required method
fn select(
&self,
pop: &TernaryPopulation,
n: usize,
rng: &mut SimpleRng,
) -> Vec<TernaryAgent>;
}Expand description
Selection trait — picks parents from a population.
Required Methods§
Sourcefn select(
&self,
pop: &TernaryPopulation,
n: usize,
rng: &mut SimpleRng,
) -> Vec<TernaryAgent>
fn select( &self, pop: &TernaryPopulation, n: usize, rng: &mut SimpleRng, ) -> Vec<TernaryAgent>
Select n parents from the population.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".