pub struct ShortestTrace { /* private fields */ }
Expand description
The shortest trace found in the edit space.
The index k is calculated as k = x - y. d is the depth in the graph that is examined. The values stored in the matrix are the best x value that can be achieved at each point.
§Layout
| k
|-5 -4 -3 -2 -1 0 1 2 3 4 5
----+---------------------------------
0 | o
1 | o o o
d 2 | o o o o o
3 | o o o o o o o
4 | o o o o o o o o o
5 | o o o o o o o o o o o
§Example
Trace for diff of sequences ‘ABCABBA’ and ‘CBABAC’:
| k
|-5 -4 -3 -2 -1 0 1 2 3 4 5
----+---------------------------------
0 | 0
1 | 0 0 1
d 2 | 2 0 2 1 3
3 | 3 2 4 2 5 3 5
4 | 3 4 4 5 5 7 5 7
5 | 3 4 5 5 7 7 5 7
Implementations§
Trait Implementations§
Source§impl Clone for ShortestTrace
impl Clone for ShortestTrace
Source§fn clone(&self) -> ShortestTrace
fn clone(&self) -> ShortestTrace
Returns a duplicate of the value. Read more
1.0.0 · 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 ShortestTrace
impl Debug for ShortestTrace
Source§impl PartialEq for ShortestTrace
impl PartialEq for ShortestTrace
impl Eq for ShortestTrace
impl StructuralPartialEq for ShortestTrace
Auto Trait Implementations§
impl Freeze for ShortestTrace
impl RefUnwindSafe for ShortestTrace
impl Send for ShortestTrace
impl Sync for ShortestTrace
impl Unpin for ShortestTrace
impl UnwindSafe for ShortestTrace
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