Function similar::algorithms::lcs::diff

source ยท
pub fn diff<Old, New, D>(
    d: &mut D,
    old: &Old,
    old_range: Range<usize>,
    new: &New,
    new_range: Range<usize>,
) -> Result<(), D::Error>
where Old: Index<usize> + ?Sized, New: Index<usize> + ?Sized, D: DiffHook, New::Output: PartialEq<Old::Output>,
Expand description

LCS diff algorithm.

Diff old, between indices old_range and new between indices new_range.

This diff is done with an optional deadline that defines the maximal execution time permitted before it bails and falls back to an very bad approximation. Deadlines with LCS do not make a lot of sense and should not be used.