Skip to main content

BoundedMutationOperator

Trait BoundedMutationOperator 

Source
pub trait BoundedMutationOperator<G: EvolutionaryGenome>: MutationOperator<G> {
    // Required method
    fn mutate_bounded<R: Rng>(
        &self,
        genome: &mut G,
        bounds: &MultiBounds,
        rng: &mut R,
    );
}
Expand description

Bounded mutation operator trait

Mutation operator that respects bounds on gene values.

Required Methods§

Source

fn mutate_bounded<R: Rng>( &self, genome: &mut G, bounds: &MultiBounds, rng: &mut R, )

Apply bounded mutation to a genome

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§