pub trait SetDiffer {
type Ok;
type Err;
// Required methods
fn diff_equal<V>(&mut self, a: &V, b: &V)
where V: ?Sized + Diff;
fn only_in_left<V>(&mut self, a: &V)
where V: ?Sized + Diff;
fn only_in_right<V>(&mut self, b: &V)
where V: ?Sized + Diff;
fn end(self) -> Result<Self::Ok, Self::Err>;
}Expand description
A type that can do something with information about differences in a set-like sequence type, i.e. one in which elements are expected to be unique.
Required Associated Types§
Required Methods§
Sourcefn diff_equal<V>(&mut self, a: &V, b: &V)
fn diff_equal<V>(&mut self, a: &V, b: &V)
The sets contain a and b which compare as equal. Check them for
differences.
Sourcefn only_in_left<V>(&mut self, a: &V)
fn only_in_left<V>(&mut self, a: &V)
Value a is only in the left-hand set.
Sourcefn only_in_right<V>(&mut self, b: &V)
fn only_in_right<V>(&mut self, b: &V)
Value b is only in the right-hand set.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.