pub enum Alterer<C: Chromosome> {
Mutate(&'static str, Rate, Arc<dyn Mutate<C>>),
Crossover(&'static str, Rate, Arc<dyn Crossover<C>>),
}Expand description
The Alterer enum is used to represent the different types of alterations that can be performed on a population - It can be either a mutation or a crossover operation.
Variants§
Mutate(&'static str, Rate, Arc<dyn Mutate<C>>)
Crossover(&'static str, Rate, Arc<dyn Crossover<C>>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Alterer<C>
impl<C> !RefUnwindSafe for Alterer<C>
impl<C> Send for Alterer<C>
impl<C> Sync for Alterer<C>
impl<C> Unpin for Alterer<C>
impl<C> UnsafeUnpin for Alterer<C>
impl<C> !UnwindSafe for Alterer<C>
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