The differ crate compares sequences --- these may be slices of strings (e.g., lines or words), chars, bytes, or any custom "item" type that implements the Eq
and Hash
traits.
There are several other crates offering this kind of functionality: mine is based on the Python difflib.SequenceMatcher
.