Struct treediff::tools::Recorder [] [src]

pub struct Recorder<'a, K, V: 'a> {
    pub calls: Vec<ChangeType<'a, K, V>>,
    // some fields omitted
}

A Delegate to record all calls made to it.

It can be useful if you don't want to implement your own custom delegate, but instead just want to quickly see a flat list of all results of the diff run.

Examples

Please see the tests for how to use this type.

Fields

A list of all calls the diff function made on us.

Trait Implementations

impl<'a, K: Debug, V: Debug + 'a> Debug for Recorder<'a, K, V>
[src]

Formats the value using the given formatter.

impl<'a, K: PartialEq, V: PartialEq + 'a> PartialEq for Recorder<'a, K, V>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, K, V> Default for Recorder<'a, K, V>
[src]

Returns the "default value" for a type. Read more

impl<'a, K, V> Delegate<'a, K, V> for Recorder<'a, K, V> where K: Clone
[src]

... we recurse into the Value at the given Key. Read more

... we have processed all items and leave the object previously pushed.

... the Value v at the given Key k should be removed. Read more

.. the Value v at the given Key k should be added. Read more

The Value v was not changed.

... the old Value was modified, and is now the new Value.