Function difft::display::style::split_and_apply
source · pub(crate) fn split_and_apply(
line: &str,
max_len: usize,
tab_width: usize,
styles: &[(SingleLineSpan, Style)],
side: Side
) -> Vec<String>Expand description
Split line (from the source code) into multiple lines of
max_len (i.e. word wrapping), and apply styles to each part
according to its original position in line.