Function similar::udiff::unified_diff
source · pub fn unified_diff(
alg: Algorithm,
old: &str,
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
.