Skip to main content

Selection

Trait Selection 

Source
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§

Source

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".

Implementors§