pub fn diff_lines_with_algorithm(
old: &[DiffLine<'_>],
new: &[DiffLine<'_>],
algorithm: DiffAlgorithm,
) -> Vec<DiffOp>Expand description
Dispatch to the line-diff implementation selected by algorithm.
All variants return the same coalesced DiffOp run sequence as
myers_diff_lines, so callers can switch algorithms without changing how
they consume the result.
DiffAlgorithm::MyersandDiffAlgorithm::Minimaluse the Myers O(ND) shortest-edit-script search (myers_diff_lines); that search is already minimal in deletions + insertions, soMinimalis an alias for it here rather than a distinct slower mode.DiffAlgorithm::Patienceusespatience_diff_lines.DiffAlgorithm::Histogramuseshistogram_diff_lines.