Trait RandomlyMutable

Source
pub trait RandomlyMutable {
    // Required method
    fn mutate(&mut self, rate: f32, rng: &mut impl Rng);
}
Expand description

Used in all of the builtin next_gens to randomly mutate genomes a given amount

Required Methods§

Source

fn mutate(&mut self, rate: f32, rng: &mut impl Rng)

Mutate the genome with a given mutation rate (0..1)

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§

Source§

impl<const I: usize, const O: usize> RandomlyMutable for NeuralNetworkTopology<I, O>