pub struct CharCodec<T = ()> { /* private fields */ }
Expand description
A Codec
for a Genotype
of CharGenes
. The encode
function creates a Genotype
with num_chromosomes
chromosomes
and num_genes
genes per chromosome. The decode
function creates a String
from the Genotype
where the String
contains the alleles of the CharGenes
in the chromosome.
Implementations§
Source§impl<T> CharCodec<T>
impl<T> CharCodec<T>
pub fn with_char_set(self, char_set: impl Into<Arc<[char]>>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CharCodec<T>
impl<T> RefUnwindSafe for CharCodec<T>where
T: RefUnwindSafe,
impl<T> Send for CharCodec<T>where
T: Send,
impl<T> Sync for CharCodec<T>where
T: Sync,
impl<T> Unpin for CharCodec<T>where
T: Unpin,
impl<T> UnwindSafe for CharCodec<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more