Function difft::line_parser::change_positions
source · pub(crate) fn change_positions(lhs_src: &str, rhs_src: &str) -> Vec<MatchedPos>
Expand description
Build a vec of MatchedPos, performing a textual diff. Match up unchanged lines, and match up unchanged words within novel lines.
The resulting vec only has novel items from the LHS. Callers
should do change_positions(rhs_src, lhs_src)
to obtain
novel MatchedPos values for the RHS.