pub enum EditOp {
Match {
src: usize,
tgt: usize,
},
Substitute {
src: usize,
tgt: usize,
},
Delete {
src: usize,
},
Insert {
tgt: usize,
},
}Expand description
A single elementary edit in an alignment between a source and target.
Variants§
Match
Source and target symbols are equal — kept as-is. Holds (src, tgt) indices.
Substitute
Source symbol replaced by a different target symbol. Holds (src, tgt).
Delete
Source symbol deleted (present in source, absent in target). Holds src.
Insert
Target symbol inserted (absent in source, present in target). Holds tgt.
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