Struct genetic_algorithm::crossover::CrossoverDispatch
source · [−]pub struct CrossoverDispatch(pub Crossovers, pub KeepParent);
Expand description
Wrapper for use in meta analysis
Tuple Fields
0: Crossovers
1: KeepParent
Trait Implementations
sourceimpl Clone for CrossoverDispatch
impl Clone for CrossoverDispatch
sourcefn clone(&self) -> CrossoverDispatch
fn clone(&self) -> CrossoverDispatch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Crossover for CrossoverDispatch
impl Crossover for CrossoverDispatch
fn call<T: Genotype, R: Rng>(
&self,
genotype: &T,
population: &mut Population<T>,
rng: &mut R
)
sourcefn require_crossover_indexes(&self) -> bool
fn require_crossover_indexes(&self) -> bool
to guard against invalid Crossover strategies which break the internal consistency of the genes, unique genotypes can’t simply exchange genes without gene duplication issues Read more
sourcefn require_crossover_points(&self) -> bool
fn require_crossover_points(&self) -> bool
to guard against invalid Crossover strategies which break the internal consistency of the genes, unique genotypes can’t simply exchange genes without gene duplication issues Read more
Auto Trait Implementations
impl RefUnwindSafe for CrossoverDispatch
impl Send for CrossoverDispatch
impl Sync for CrossoverDispatch
impl Unpin for CrossoverDispatch
impl UnwindSafe for CrossoverDispatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more