Function termdiff::arrows_theme[][src]

pub fn arrows_theme() -> Theme
Expand description

A simple colorless using arrows theme

Examples

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

assert_eq!(
    actual,
    "< left / > right
 a
<b
<c
>c
"
);