pub enum Op {
Equal {
old: usize,
new: usize,
len: usize,
},
Delete {
old: usize,
len: usize,
},
Insert {
new: usize,
len: usize,
},
}Expand description
One run of an edit script. Indices are 0-based positions in the old (a) and new (b) inputs.
Variants§
Equal
len elements equal on both sides.
Delete
len elements of the old side removed.
Insert
len elements of the new side added.
Trait Implementations§
impl Copy for Op
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Forget for Op
impl Freeze for Op
impl Move for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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