pub struct GraphCodex<T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T> Codex<GraphChromosome<T>, Graph<T>> for GraphCodex<T>
impl<T> Codex<GraphChromosome<T>, Graph<T>> for GraphCodex<T>
fn encode(&self) -> Genotype<GraphChromosome<T>>
fn decode(&self, genotype: &Genotype<GraphChromosome<T>>) -> Graph<T>
Source§fn spawn(&self, num: usize) -> Vec<T>
fn spawn(&self, num: usize) -> Vec<T>
Spawn a new instance of
T from the Codex. This will encode num new Genotypes and then
decode it to a new instance of T.Source§fn spawn_genotypes(&self, num: usize) -> Vec<Genotype<C>>
fn spawn_genotypes(&self, num: usize) -> Vec<Genotype<C>>
Spawn a new instance of
Genotype<G, A> from the Codex. This will encode num a new Genotypes.Source§fn spawn_population(&self, num: usize) -> Population<C>
fn spawn_population(&self, num: usize) -> Population<C>
Spawn a new instance of
Population<G, A> from the Codex. This will encode num a new GenotypesAuto Trait Implementations§
impl<T> Freeze for GraphCodex<T>
impl<T> RefUnwindSafe for GraphCodex<T>where
T: RefUnwindSafe,
impl<T> Send for GraphCodex<T>
impl<T> Sync for GraphCodex<T>
impl<T> Unpin for GraphCodex<T>where
T: Unpin,
impl<T> UnwindSafe for GraphCodex<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