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<Symbol> ⓘ
pub fn left_symbols(&self) -> Vec<Symbol> ⓘ
Returns the left-side symbols consumed by the trace.
Sourcepub fn right_symbols(&self) -> Vec<Symbol> ⓘ
pub fn right_symbols(&self) -> Vec<Symbol> ⓘ
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
Source§fn eq(&self, other: &DistanceTrace) -> bool
fn eq(&self, other: &DistanceTrace) -> bool
Tests for
self and other values to be equal, and is used by ==.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