Skip to main content

SelectionOperator

Trait SelectionOperator 

Source
pub trait SelectionOperator: GeneticOperator {
    // Required method
    fn select_from<'a, G, R>(
        &self,
        population: &'a Population<G>,
        rng: &mut R,
    ) -> Vec<Member<'a, G>>
       where G: Genome,
             R: Rng + Sized;
}
Expand description

For selecting individuals from population.

Required Methods§

Source

fn select_from<'a, G, R>( &self, population: &'a Population<G>, rng: &mut R, ) -> Vec<Member<'a, G>>
where G: Genome, R: Rng + Sized,

Select some members from population.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§