pub enum Mutation {
Transposition(usize),
Deletion(usize),
Insertion(usize, usize),
Substitution(usize, usize),
}Expand description
Represents a way of mutating a sequence.
Variants§
Transposition(usize)
Transpose the item at the specified index with its successor.
Deletion(usize)
Delete the item at the specified index.
Insertion(usize, usize)
Insert at the first index the item from the other sequence at the second index.
Substitution(usize, usize)
Substitute for the item at the first index the item from the other sequence at the second index.
Trait Implementations§
impl Copy for Mutation
impl Eq for Mutation
impl StructuralPartialEq for Mutation
Auto Trait Implementations§
impl Freeze for Mutation
impl RefUnwindSafe for Mutation
impl Send for Mutation
impl Sync for Mutation
impl Unpin for Mutation
impl UnwindSafe for Mutation
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