[][src]Trait genevo::population::GenomeBuilder

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

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

Typically the individuals are generated randomly.

Required methods

fn build_genome<R>(&self, index: usize, rng: &mut R) -> G where
    R: Rng + Sized

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

Loading content...

Implementors

impl GenomeBuilder<Vec<bool>> for BinaryEncodedGenomeBuilder[src]

impl<V> GenomeBuilder<Vec<V>> for ValueEncodedGenomeBuilder<V> where
    V: Clone + Debug + PartialEq + PartialOrd + SampleUniform + Send + Sync
[src]

Loading content...