Function similar::text::unified_diff[][src]

pub fn unified_diff<'old, 'new>(
    alg: Algorithm,
    old: &'old str,
    new: &'new str,
    n: usize,
    header: Option<(&str, &str)>
) -> String

Quick way to get a unified diff as string.

n configures UnifiedDiff::context_radius and header configures UnifiedDiff::header when not None.