Trait Survive

Source
pub trait Survive<G: Genome>: Clone {
    // Required method
    fn survive<R: Rng + Sized>(
        &mut self,
        population: Population<G>,
        rng: &mut R,
    ) -> Vec<Individual<G>>;
}
Expand description

Member supplanting by removing bad performing individuals.

Required Methods§

Source

fn survive<R: Rng + Sized>( &mut self, population: Population<G>, rng: &mut R, ) -> Vec<Individual<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.

Implementors§

Source§

impl<G> Survive<G> for Survivor
where G: Genome + Ord,