[−][src]Trait visit_diff::StructDiffer
A type that can deal with differences in a struct
.
Associated Types
Loading content...Required methods
fn diff_field<T: ?Sized>(&mut self, name: &'static str, a: &T, b: &T) where
T: Diff,
T: Diff,
Visits a field name
with values a
and b
in the respective
structures.
fn end(self) -> Result<Self::Ok, Self::Err>
Completes traversal of the struct.
Provided methods
fn skip_field<T: ?Sized>(&mut self, _name: &'static str)
Skips a field that is excluded from differencing.
Some differs may e.g. print a placeholder for skipped fields.
Implementations on Foreign Types
impl StructDiffer for ()
[src]
type Ok = ()
type Err = Void
fn diff_field<T: ?Sized>(&mut self, _: &'static str, _: &T, _: &T) where
T: Diff,
[src]
T: Diff,