difft::display::style

Function color_positions

Source
pub(crate) fn color_positions(
    side: Side,
    background: BackgroundColor,
    syntax_highlight: bool,
    file_format: &FileFormat,
    mps: &[MatchedPos],
) -> Vec<(SingleLineSpan, Style)>