Structsยง
- IntCodec
- A Codec for a Genotype of
IntGenes. Theencodefunction creates a Genotype withnum_chromosomeschromosomes andnum_genesgenes per chromosome. Thedecodefunction creates aVec<Vec<T>>from the Genotype where the innerVeccontains the alleles of theIntGenesin the chromosome.Tmust implement theIntegertrait, meaning it must be one ofi8,i16,i32,i64,i128,u8,u16,u32,u64, oru128.