Crate slice_diff_patch

Source

Enums§

Change
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§

diff_changes
Convert a slice of diff::Result into a Vec<Change>.
diff_diff
Calculate the diff between a and b via diff::slice and convert to a Vec<Change>.
insert
Process an insert.
lcs_changes
Convert a slice of lcs_diff::DiffResult into a Vec<Change>.
lcs_diff
Calculate the diff between a and b via lcs_diff::diff and convert to a Vec<Change>.
patch
Reproduce b from the a slice and Vec<Change>.
remove
Process a remove.
wu_changes
Convert a slice of wu_diff::DiffResult into a Vec<Change>.
wu_diff
Calculate the diff between a and b via wu_diff::diff and convert to a Vec<Change>.