[−][src]Trait rust_ga::Genome
Trait required for a DNA to ge added to Population
Required methods
fn new() -> Self
Creates a new Genome
fn fitness(&self) -> f64
Computes the fitness of the Genome
fn cross(&self, other: &Self) -> Self
Creates a new Genome by crossing over 2 Genomes
fn mutate(self) -> Self
Mutates a Genome
fn display(&self)
Displays the Genome