[−][src]Struct treediff::tools::Recorder
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]
K: Clone,
fn push(&mut self, k: &K)
[src]
fn pop(&mut self)
[src]
fn removed<'b>(&mut self, k: &'b K, v: &'a V)
[src]
fn added<'b>(&mut self, k: &'b K, v: &'a V)
[src]
fn unchanged<'b>(&mut self, v: &'a V)
[src]
fn modified<'b>(&mut self, v1: &'a V, v2: &'a V)
[src]
impl<'a, K: PartialEq, V: PartialEq + 'a> PartialEq<Recorder<'a, K, V>> for Recorder<'a, K, V>
[src]
fn eq(&self, other: &Recorder<'a, K, V>) -> bool
[src]
fn ne(&self, other: &Recorder<'a, K, V>) -> bool
[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,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for Recorder<'a, K, V> where
K: Send,
V: Sync,
K: Send,
V: Sync,
impl<'a, K, V> Sync for Recorder<'a, K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for Recorder<'a, K, V> where
K: Unpin,
K: Unpin,
impl<'a, K, V> UnwindSafe for Recorder<'a, K, V> where
K: UnwindSafe,
V: RefUnwindSafe,
K: UnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,