pub struct Genotype<G: Gene<G, A>, A> {
pub chromosomes: Vec<Chromosome<G, A>>,
}Fields§
§chromosomes: Vec<Chromosome<G, A>>Implementations§
source§impl<G: Gene<G, A>, A> Genotype<G, A>
impl<G: Gene<G, A>, A> Genotype<G, A>
pub fn get_chromosome_mut(&mut self, index: usize) -> &mut Chromosome<G, A>
pub fn len(&self) -> usize
pub fn is_valid(&self) -> bool
pub fn iter(&self) -> Iter<'_, Chromosome<G, A>>
pub fn iter_mut(&mut self) -> IterMut<'_, Chromosome<G, A>>
Trait Implementations§
Auto Trait Implementations§
impl<G, A> Freeze for Genotype<G, A>
impl<G, A> RefUnwindSafe for Genotype<G, A>where
A: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, A> Send for Genotype<G, A>
impl<G, A> Sync for Genotype<G, A>
impl<G, A> Unpin for Genotype<G, A>
impl<G, A> UnwindSafe for Genotype<G, A>where
A: UnwindSafe,
G: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)