pub trait GenomeBuilder<G>: Sync where
    G: Genotype
{ fn build_genome<R>(&self, index: usize, rng: &mut R) -> G
    where
        R: Rng + Sized
; }
Expand description

A GenomeBuilder defines how to build individuals of a population for custom genetic::Genotypes.

Typically the individuals are generated randomly.

Required methods

Builds a new genome of type genetic::Genotype for the given index using the given random number generator rng.

Implementors