pub enum MutationType {
Swap,
Insert,
Invert,
}Expand description
Mutation strategy for scheduling chromosomes.
Variants§
Swap
Swap two random positions in the OSV.
Insert
Remove and reinsert at a random position.
Invert
Reverse a random segment of the OSV.
Trait Implementations§
Source§impl Clone for MutationType
impl Clone for MutationType
Source§fn clone(&self) -> MutationType
fn clone(&self) -> MutationType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MutationType
impl Debug for MutationType
Source§impl PartialEq for MutationType
impl PartialEq for MutationType
impl Copy for MutationType
impl Eq for MutationType
impl StructuralPartialEq for MutationType
Auto Trait Implementations§
impl Freeze for MutationType
impl RefUnwindSafe for MutationType
impl Send for MutationType
impl Sync for MutationType
impl Unpin for MutationType
impl UnsafeUnpin for MutationType
impl UnwindSafe for MutationType
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