Skip to main content

diff

Function diff 

Source
pub fn diff(
    source: &str,
    path: &Path,
    edits: &[(Range<usize>, String)],
) -> String
Expand description

Compute a unified-diff-style display of planned edits.

Each edit is shown with its surrounding context (the line containing the edit).