pub struct MyersDiffer<'a> { /* private fields */ }Expand description
The Myers differ implementation that uses Myers algorithm for diffing
This implementation uses the Longest Common Subsequence (LCS) approach, which is a dynamic programming solution that provides the foundation of Myers’ algorithm. While the full Myers O(ND) optimization uses a greedy approach with diagonal paths, this implementation prioritizes correctness and readability based on LCS.
Implementations§
Trait Implementations§
Source§impl DiffAlgorithm for MyersDiffer<'_>
impl DiffAlgorithm for MyersDiffer<'_>
Auto Trait Implementations§
impl<'a> Freeze for MyersDiffer<'a>
impl<'a> RefUnwindSafe for MyersDiffer<'a>
impl<'a> Send for MyersDiffer<'a>
impl<'a> Sync for MyersDiffer<'a>
impl<'a> Unpin for MyersDiffer<'a>
impl<'a> UnwindSafe for MyersDiffer<'a>
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