pub fn unified_diff<'old, 'new>(
alg: Algorithm,
old: &'old str,
new: &'new str,
n: usize,
header: Option<(&str, &str)>,
) -> String
Expand description
Quick way to get a unified diff as string.
n
configures UnifiedDiff::context_radius
and
header
configures UnifiedDiff::header
when not None
.