pub struct Genotype { /* private fields */ }Expand description
Genotype representation of the network
Implementations§
Trait Implementations§
Source§impl Gene for Genotype
impl Gene for Genotype
Source§fn empty(inputs: usize, outputs: usize) -> Self
fn empty(inputs: usize, outputs: usize) -> Self
returns an empty genome with only input and output nodes and no connections
Source§fn is_same_species_as(&self, other: &Self) -> bool
fn is_same_species_as(&self, other: &Self) -> bool
checks if the other genome is same species as self
Source§fn mutate<T: GlobalNeatCounter>(&mut self, neat: &mut T)
fn mutate<T: GlobalNeatCounter>(&mut self, neat: &mut T)
method for mutation of the genome
Auto Trait Implementations§
impl Freeze for Genotype
impl RefUnwindSafe for Genotype
impl Send for Genotype
impl Sync for Genotype
impl Unpin for Genotype
impl UnwindSafe for Genotype
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