Structsยง
- IntCodec
- A Codec for a Genotype of
IntGenes
. Theencode
function creates a Genotype withnum_chromosomes
chromosomes andnum_genes
genes per chromosome. Thedecode
function creates aVec<Vec<T>>
from the Genotype where the innerVec
contains the alleles of theIntGenes
in the chromosome.T
must implement theInteger
trait, meaning it must be one ofi8
,i16
,i32
,i64
,i128
,u8
,u16
,u32
,u64
, oru128
.