pub struct DistanceTrace {
pub distance: usize,
pub steps: Vec<TraceStep>,
}Expand description
Edit distance plus one best sequence of edit operations.
Fields§
§distance: usizeFinal edit distance.
steps: Vec<TraceStep>Reconstructed steps from start to end.
Implementations§
Source§impl DistanceTrace
impl DistanceTrace
Sourcepub fn left_symbols(&self) -> Vec<u32>
pub fn left_symbols(&self) -> Vec<u32>
Returns the left-side symbols consumed by the trace.
Sourcepub fn right_symbols(&self) -> Vec<u32>
pub fn right_symbols(&self) -> Vec<u32>
Returns the right-side symbols consumed by the trace.
Trait Implementations§
Source§impl Clone for DistanceTrace
impl Clone for DistanceTrace
Source§fn clone(&self) -> DistanceTrace
fn clone(&self) -> DistanceTrace
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 Debug for DistanceTrace
impl Debug for DistanceTrace
impl Eq for DistanceTrace
Source§impl PartialEq for DistanceTrace
impl PartialEq for DistanceTrace
impl StructuralPartialEq for DistanceTrace
Auto Trait Implementations§
impl Freeze for DistanceTrace
impl RefUnwindSafe for DistanceTrace
impl Send for DistanceTrace
impl Sync for DistanceTrace
impl Unpin for DistanceTrace
impl UnsafeUnpin for DistanceTrace
impl UnwindSafe for DistanceTrace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.