pub enum EditOp<T: Clone + PartialEq> {
Match(T),
Delete(T),
Insert(T),
Substitute {
from: T,
to: T,
},
}Expand description
One step in an edit-distance script.
Variants§
Match(T)
Keep the same symbol.
Delete(T)
Delete a symbol from the source.
Insert(T)
Insert a symbol from the target.
Substitute
Replace one symbol with another.
Trait Implementations§
impl<T: PartialEq + Clone + PartialEq> StructuralPartialEq for EditOp<T>
Auto Trait Implementations§
impl<T> Freeze for EditOp<T>where
T: Freeze,
impl<T> RefUnwindSafe for EditOp<T>where
T: RefUnwindSafe,
impl<T> Send for EditOp<T>where
T: Send,
impl<T> Sync for EditOp<T>where
T: Sync,
impl<T> Unpin for EditOp<T>where
T: Unpin,
impl<T> UnsafeUnpin for EditOp<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EditOp<T>where
T: UnwindSafe,
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