Function difft::display::side_by_side::highlight_positions
source · [−]fn highlight_positions(
background: BackgroundColor,
syntax_highlight: bool,
file_format: &FileFormat,
lhs_mps: &[MatchedPos],
rhs_mps: &[MatchedPos]
) -> (HashMap<LineNumber, Vec<(SingleLineSpan, Style)>, BuildHasherDefault<FxHasher>>, HashMap<LineNumber, Vec<(SingleLineSpan, Style)>, BuildHasherDefault<FxHasher>>)
Expand description
Calculate positions of highlights on both sides. This includes both syntax highlighting and added/removed content highlighting.