difft::display::style

Function apply_colors

Source
pub(crate) fn apply_colors(
    s: &str,
    side: Side,
    syntax_highlight: bool,
    file_format: &FileFormat,
    background: BackgroundColor,
    mps: &[MatchedPos],
) -> Vec<String>