Skip to main content

diff_lines_with_algorithm

Function diff_lines_with_algorithm 

Source
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.