1 2 3 4 5 6 7 8 9 10
use crate::{Individual, Selection}; #[derive(Clone)] pub struct DoNothingSelection; impl<T: Individual> Selection<T> for DoNothingSelection { fn get_mating_pool(&self, initial_population: &Vec<T>) -> Vec<T> { initial_population.clone() } }