Enum Diff
pub enum Diff<I, J>
where
I: Iterator,
J: Iterator,
A type returned by the diff_with function.
Diff represents the way in which the elements yielded by the iterator I differ to some
iterator J.
Variants
-
FirstMismatch(usize, PutBack<I>, PutBack<J>) The index of the first non-matching element along with both iterator's remaining elements starting with the first mis-match.
-
Shorter(usize, PutBack<I>) The total number of elements that were in
Jalong with the remaining elements ofI.-
Longer(usize, PutBack<J>) The total number of elements that were in
Ialong with the remaining elements ofJ.
Trait Implementations
impl<I, J> Clone for Diff<I, J>
where
I: Iterator,
J: Iterator,
PutBack<I>: Clone,
PutBack<J>: Clone,
fn clone(&self) -> Self
impl<I, J> Debug for Diff<I, J>
where
I: Iterator,
J: Iterator,
PutBack<I>: Debug,
PutBack<J>: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result