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

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][tests] for how to use this type. [tests]: https://github.com/Byron/treediff-rs/blob/master/tests/diff.rs#L21

Fields

calls: Vec<ChangeType<'a, K, V>>

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]

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

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

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

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

Auto Trait Implementations

impl<'a, K, V> RefUnwindSafe for Recorder<'a, K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, K, V> Send for Recorder<'a, K, V> where
    K: Send,
    V: Sync

impl<'a, K, V> Sync for Recorder<'a, K, V> where
    K: Sync,
    V: Sync

impl<'a, K, V> Unpin for Recorder<'a, K, V> where
    K: Unpin

impl<'a, K, V> UnwindSafe for Recorder<'a, K, V> where
    K: UnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.