Module int

Module int 

Source

Structsยง

IntCodec
A Codec for a Genotype of IntGenes. The encode function creates a Genotype with num_chromosomes chromosomes and num_genes genes per chromosome. The decode function creates a Vec<Vec<T>> from the Genotype where the inner Vec contains the alleles of the IntGenes in the chromosome. T must implement the Integer trait, meaning it must be one of i8, i16, i32, i64, i128, u8, u16, u32, u64, or u128.