Delta-Encoding library

A simple library for encoding and decoding a stream of values as delta-encoded. For example, if you have a stream of values like this:

text 1, 3, 2, 4, 5

the delta-encoded stream would be:

text 1, 2, -1, 2, 1

Usage

```rust use delta_encoding::DeltaEncoderExt;

pub fn main() { let data = vec![1, 2, 5, 4, 2]; let encoded: Vec = data.intoiter().todeltas().collect();

assert_eq!(encoded, vec![1, 1, 3, -1, -2]);

} ```

Development

All of these must succeed: bash cargo test # Testing cargo bench # Benchmarking cargo fmt # Code format cargo clippy # Code lints

TODO