iter-diff
Differences between iterators
The IterDiff
trait can be used to iterate through the differences between
two iterators. The differences between each element are enumerated by Diff
.
The variants of the enum express the changes one would need to make to the
left-hand iterator in order to attain the right-hand iterator.
use *;
let a = ;
let b = ;
let diffs: = a.iter_diff.collect;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;