[][src]Trait visit_diff::SetDiffer

pub trait SetDiffer {
    type Ok;
    type Err;
    fn diff_equal<V: ?Sized>(&mut self, a: &V, b: &V)
    where
        V: Diff
;
fn only_in_left<V: ?Sized>(&mut self, a: &V)
    where
        V: Diff
;
fn only_in_right<V: ?Sized>(&mut self, b: &V)
    where
        V: Diff
;
fn end(self) -> Result<Self::Ok, Self::Err>; }

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.

Associated Types

type Ok

Type returned on success.

type Err

Type returned on failure.

Loading content...

Required methods

fn diff_equal<V: ?Sized>(&mut self, a: &V, b: &V) where
    V: Diff

The sets contain a and b which compare as equal. Check them for differences.

fn only_in_left<V: ?Sized>(&mut self, a: &V) where
    V: Diff

Value a is only in the left-hand set.

fn only_in_right<V: ?Sized>(&mut self, b: &V) where
    V: Diff

Value b is only in the right-hand set.

fn end(self) -> Result<Self::Ok, Self::Err>

We've reached the end of the sets.

Loading content...

Implementations on Foreign Types

impl SetDiffer for ()[src]

type Ok = ()

type Err = Void

Loading content...

Implementors

impl<R> SetDiffer for Const<R>[src]

type Ok = R

type Err = Void

Loading content...