pub enum Op {
Equal {
a: usize,
b: usize,
},
Change {
a: usize,
b: usize,
similarity: f64,
fields: Vec<FieldDiff>,
},
Insert {
b: usize,
},
Delete {
a: usize,
},
}Expand description
One entry in the edit script aligning two traces.
Variants§
Equal
The step is present and equal in both traces.
Change
The step is present in both but its fields differ.
Fields
Insert
The step exists only in the right (b) trace.
Delete
The step exists only in the left (a) trace.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Forget for Op
impl Freeze 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