pub trait BoundedCrossoverOperator<G: EvolutionaryGenome>: CrossoverOperator<G> {
// Required method
fn crossover_bounded<R: Rng>(
&self,
parent1: &G,
parent2: &G,
bounds: &MultiBounds,
rng: &mut R,
) -> OperatorResult<(G, G)>;
}Expand description
Bounded crossover operator trait
Crossover operator that respects bounds on gene values.
Required Methods§
Sourcefn crossover_bounded<R: Rng>(
&self,
parent1: &G,
parent2: &G,
bounds: &MultiBounds,
rng: &mut R,
) -> OperatorResult<(G, G)>
fn crossover_bounded<R: Rng>( &self, parent1: &G, parent2: &G, bounds: &MultiBounds, rng: &mut R, ) -> OperatorResult<(G, G)>
Apply bounded crossover to two parents
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.