pub enum AlterAction<C: Chromosome> {
Mutate(&'static str, f32, Box<dyn Mutate<C>>),
Crossover(&'static str, f32, Box<dyn Crossover<C>>),
}
Expand description
The AlterAction
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§
Trait Implementations§
Source§impl<C: Chromosome> Alter<C> for AlterAction<C>
impl<C: Chromosome> Alter<C> for AlterAction<C>
Auto Trait Implementations§
impl<C> Freeze for AlterAction<C>
impl<C> !RefUnwindSafe for AlterAction<C>
impl<C> Send for AlterAction<C>
impl<C> Sync for AlterAction<C>
impl<C> Unpin for AlterAction<C>
impl<C> !UnwindSafe for AlterAction<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