Differ Rust library

Find the differences between two sequences

Differ is a Rust library for finding the differences between two sequences.

The sequences can be vectors of lines, strings (e.g., words), characters, bytes, or of any custom “item” type so long as it implements the Hash and Eq traits (and uses the same data for both).

For your Cargo.toml add this to the [dependencies] section:

differ = "1.0.1"

If you want to be able to serialize or deserialize Matches, Spans, or Tags, use:

differ = { version = "1.0.1", features = ["use_serde"] }

Then, in your crate root, for Rust 2015 add extern crate differ, and for Rust 2018 add use differ.

API documentation (with examples) — Source code: differ-1.0.1.tar.gz (21KB; MD5 77fb34354021aca7f24703232e369b8f), or download from github.

Changes

Top