pub struct Phenotype<G: Gene<G, A>, A> {
pub genotype: Genotype<G, A>,
pub score: Option<Score>,
pub generation: i32,
}Fields§
§genotype: Genotype<G, A>§score: Option<Score>§generation: i32Implementations§
Trait Implementations§
source§impl<G: Gene<G, A>, A> FromIterator<Phenotype<G, A>> for Population<G, A>
impl<G: Gene<G, A>, A> FromIterator<Phenotype<G, A>> for Population<G, A>
source§impl<G: Gene<G, A>, A> PartialEq for Phenotype<G, A>
impl<G: Gene<G, A>, A> PartialEq for Phenotype<G, A>
source§impl<G: Gene<G, A>, A> PartialOrd for Phenotype<G, A>
impl<G: Gene<G, A>, A> PartialOrd for Phenotype<G, A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreAuto Trait Implementations§
impl<G, A> Freeze for Phenotype<G, A>
impl<G, A> RefUnwindSafe for Phenotype<G, A>where
A: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, A> Send for Phenotype<G, A>
impl<G, A> Sync for Phenotype<G, A>
impl<G, A> Unpin for Phenotype<G, A>
impl<G, A> UnwindSafe for Phenotype<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)