[−][src]Trait visit_diff::SeqDiffer
A type that can do something with information about differences in a
sequence, like a slice or Vec
.
Associated Types
Loading content...Required methods
fn diff_element<T: ?Sized>(&mut self, a: &T, b: &T) where
T: Diff,
T: Diff,
We've found elements in corresponding positions in both sequences.
fn left_excess<T: ?Sized>(&mut self, a: &T) where
T: Diff,
T: Diff,
We've found an element that only appears in the left-hand sequence.
fn right_excess<T: ?Sized>(&mut self, b: &T) where
T: Diff,
T: Diff,
We've found an element that only appears in the right-hand sequence.
fn end(self) -> Result<Self::Ok, Self::Err>
Complete the sequence and produce the result.
Provided methods
fn diff_elements<T, I>(&mut self, a: I, b: I) where
T: Diff,
I: IntoIterator<Item = T>,
T: Diff,
I: IntoIterator<Item = T>,
Consumes two iterators, diffing their contents. This is a convenience method implemented in terms of the others.
Implementations on Foreign Types
impl SeqDiffer for ()
[src]
type Ok = ()
type Err = Void
fn diff_element<T: ?Sized>(&mut self, _: &T, _: &T) where
T: Diff,
[src]
T: Diff,
fn diff_elements<T, I>(&mut self, _: I, _: I) where
T: Diff,
I: IntoIterator<Item = T>,
[src]
T: Diff,
I: IntoIterator<Item = T>,
fn left_excess<T: ?Sized>(&mut self, _: &T) where
T: Diff,
[src]
T: Diff,
fn right_excess<T: ?Sized>(&mut self, _: &T) where
T: Diff,
[src]
T: Diff,
fn end(self) -> Result<Self::Ok, Self::Err>
[src]
Implementors
impl<R> SeqDiffer for Const<R>
[src]
type Ok = R
type Err = Void
fn diff_element<T: ?Sized>(&mut self, _: &T, _: &T) where
T: Diff,
[src]
T: Diff,
fn diff_elements<T, I>(&mut self, _: I, _: I) where
T: Diff,
I: IntoIterator<Item = T>,
[src]
T: Diff,
I: IntoIterator<Item = T>,
fn left_excess<T: ?Sized>(&mut self, _: &T) where
T: Diff,
[src]
T: Diff,
fn right_excess<T: ?Sized>(&mut self, _: &T) where
T: Diff,
[src]
T: Diff,