1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
mod multi_point; pub use multi_point::MultiPoint; pub trait Crossover<T> { type Error; fn crossover( &self, source: &mut T, destination: &mut T, filling_num: usize, ) -> Result<(), Self::Error>; } impl<T> Crossover<T> for () { type Error = core::convert::Infallible; fn crossover(&self, _: &mut T, _: &mut T, _: usize) -> Result<(), Self::Error> { Ok(()) } }