Expand description

This crate provides the Change enum as an abstraction for diff::Result, lcs_diff::DiffResult, and wu_diff::DiffResult; the diff_changes(), diff_diff(), lcs_changes(), lcs_diff(), wu_changes(), and wu_diff() functions to calculate or process diffs between a and b slices via LCS (Longest Common Subsequence) or Wu diff algorithms into a Vec<Change>, and the patch() function to reproduce b from the a slice and Vec<Change>.

See also:

Enums

Abstraction for diff::Result, lcs_diff::DiffResult, and wu_diff::DiffResult that excludes a variant for common sequence, stores a clone of inserted items, and indices relate iteratively to a.

Functions

Convert a slice of diff::Result into a Vec<Change>.

Calculate the diff between a and b via diff::slice and convert to a Vec<Change>.

Convert a slice of lcs_diff::DiffResult into a Vec<Change>.

Calculate the diff between a and b via lcs_diff::diff and convert to a Vec<Change>.

Reproduce b from the a slice and Vec<Change>.

Convert a slice of wu_diff::DiffResult into a Vec<Change>.

Calculate the diff between a and b via wu_diff::diff and convert to a Vec<Change>.