pub fn diff(
files: &[(&str, &[u8])],
opts: &DiffOptions,
) -> Result<String, String>Expand description
The differences between files (label, package bytes), first file first.
Each part becomes a tree whose elements carry a key that names them across documents: a style by type and name, a paragraph by its text, a table by its first text, a row by its text, a cell by its position, a note or comment by its text, a header or footer part by the section role that shows it. Children align by key (a longest common subsequence, file by file); within a gap, unmatched elements of one kind pair in order, so a rewritten paragraph still meets the one it replaced. Each matched element is a list of lines (property items, run segments), and a hunk prints the lines not every file holds.
ยงErrors
debug diff needs at least two files when files holds fewer than
two; otherwise a message naming which file is not a readable zip.