Function termdiff::signs_theme[][src]

pub fn signs_theme() -> Theme
Expand description

A simple colorless using signs theme

Examples

use termdiff::{diff, signs_theme};
let old = "a\nb\nc";
let new = "a\nc\n";
let mut buffer: Vec<u8> = Vec::new();
diff(&mut buffer, old, new, signs_theme()).unwrap();
let actual: String = String::from_utf8(buffer).expect("Not valid UTF-8");

assert_eq!(
    actual,
    "--- remove | insert +++
 a
-b
-c
+c
"
);