pub trait Genome:
Clone
+ Send
+ Sync
+ Sized {
// Required methods
fn random(rng: &mut dyn RngCore) -> Self;
fn mutate(&mut self, rng: &mut dyn RngCore);
fn crossover(&self, other: &Self, rng: &mut dyn RngCore) -> Self;
}Expand description
Defines how candidate parameters behave within the genetic algorithm.
Required Methods§
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.