pub trait Repair<G: ?Sized> {
// Required method
fn repair<R: Rng + ?Sized>(&mut self, genome: &mut G, rng: &mut R);
}Expand description
Makes a genome valid again after variation (genotypic repair).
Phenotypic repair, which only adjusts the interpretation, belongs in the objective.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl Repair<Vec<f64>> for Clamp
impl Repair<Vec<f64>> for Reflect
impl Repair<Vec<u32>> for Domains
Clamps every gene into its domain.