Skip to main content

line_diff

Function line_diff 

pub fn line_diff(before: &str, after: &str) -> Vec<DiffLine>
Expand description

The lines of before and after: the ones both share once, and the ones only one of them has, in the order they stand — a removed line before the added one that took its place.

Lines are compared as they are; nothing is inferred about what moved.