pub struct MitosisRepopulator<G>where
G: Mitosis,{
pub mutation_rate: f32,
/* private fields */
}Expand description
Repopulator that uses division reproduction to create new genomes.
Fields§
§mutation_rate: f32The mutation rate to use when mutating genomes. 0.0 - 1.0
Implementations§
Source§impl<G> MitosisRepopulator<G>where
G: Mitosis,
impl<G> MitosisRepopulator<G>where
G: Mitosis,
Sourcepub fn new(mutation_rate: f32) -> MitosisRepopulator<G>
pub fn new(mutation_rate: f32) -> MitosisRepopulator<G>
Creates a new MitosisRepopulator.
Trait Implementations§
Source§impl<G> Repopulator<G> for MitosisRepopulator<G>where
G: Mitosis,
impl<G> Repopulator<G> for MitosisRepopulator<G>where
G: Mitosis,
Source§fn repopulate(&self, genomes: &mut Vec<G>, target_size: usize)
fn repopulate(&self, genomes: &mut Vec<G>, target_size: usize)
Replaces the genomes in the simulation.
Auto Trait Implementations§
impl<G> Freeze for MitosisRepopulator<G>
impl<G> RefUnwindSafe for MitosisRepopulator<G>where
G: RefUnwindSafe,
impl<G> Send for MitosisRepopulator<G>where
G: Send,
impl<G> Sync for MitosisRepopulator<G>where
G: Sync,
impl<G> Unpin for MitosisRepopulator<G>where
G: Unpin,
impl<G> UnwindSafe for MitosisRepopulator<G>where
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