pub enum AlignmentStep<C> {
Match {
left: usize,
right: usize,
cost: C,
},
Delete {
left: usize,
cost: C,
},
Insert {
right: usize,
cost: C,
},
}Expand description
One operation in a full alignment path.
Variants§
Match
Pair one left and one right item.
Delete
Consume an unmatched left item.
Insert
Consume an unmatched right item.
Trait Implementations§
Source§impl<C: Clone> Clone for AlignmentStep<C>
impl<C: Clone> Clone for AlignmentStep<C>
Source§fn clone(&self) -> AlignmentStep<C>
fn clone(&self) -> AlignmentStep<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug> Debug for AlignmentStep<C>
impl<C: Debug> Debug for AlignmentStep<C>
impl<C: Eq> Eq for AlignmentStep<C>
Source§impl<C: PartialEq> PartialEq for AlignmentStep<C>
impl<C: PartialEq> PartialEq for AlignmentStep<C>
impl<C: PartialEq> StructuralPartialEq for AlignmentStep<C>
Auto Trait Implementations§
impl<C> Freeze for AlignmentStep<C>where
C: Freeze,
impl<C> RefUnwindSafe for AlignmentStep<C>where
C: RefUnwindSafe,
impl<C> Send for AlignmentStep<C>where
C: Send,
impl<C> Sync for AlignmentStep<C>where
C: Sync,
impl<C> Unpin for AlignmentStep<C>where
C: Unpin,
impl<C> UnsafeUnpin for AlignmentStep<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for AlignmentStep<C>where
C: 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