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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MutationType
Source§impl Debug for MutationType
impl Debug for MutationType
impl Eq for MutationType
Source§impl PartialEq for MutationType
impl PartialEq for MutationType
Source§fn eq(&self, other: &MutationType) -> bool
fn eq(&self, other: &MutationType) -> bool
Tests for
self and other values to be equal, and is used by ==.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