pub enum EditOp {
Keep {
i: usize,
j: usize,
},
Substitute {
i: usize,
j: usize,
},
Insert {
j: usize,
},
Delete {
i: usize,
},
}Expand description
One step of an edit script turning sequence a into b.
Variants§
Keep
a[i] equals b[j]: keep it.
Substitute
Replace a[i] with b[j].
Insert
Insert b[j].
Delete
Delete a[i].
Trait Implementations§
impl Copy for EditOp
impl Eq for EditOp
impl StructuralPartialEq for EditOp
Auto Trait Implementations§
impl Freeze for EditOp
impl RefUnwindSafe for EditOp
impl Send for EditOp
impl Sync for EditOp
impl Unpin for EditOp
impl UnsafeUnpin for EditOp
impl UnwindSafe for EditOp
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