pub struct Merger<K, V, BF, F> { /* fields omitted */ }
Expand description
A Delegate
which applies differences to a target object.
It wraps the target object and applies all calls by the diff
algorithm to it, which changes it in some way.
Custom resolver functions can be provided to arbitrarily alter
the way the merge is performed. This allows you, for example, to
keep your own meta-data, or to implement custom conflict resolutions.
Please see the tests for usage examples.
impl<K, V, BF, F> Merger<K, V, BF, F>
Consume the merger and return the contained target Value, which is the result of the
merge operation.
Returns a mutable borrow to the MutableFilter
instance
Returns a borrow to the MutableFilter
instance
Return a new Merger with the given initial value v
and the filter f
… we recurse into the Value
at the given Key
. Read more
… we have processed all items and leave the object previously push
ed.
… 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.
Return a new merger with the given initial value v
, and the DefaultMutableFilter
.
impl<K, V, BF, F> Send for Merger<K, V, BF, F> where
BF: Send,
F: Send,
K: Send,
V: Send,
impl<K, V, BF, F> Sync for Merger<K, V, BF, F> where
BF: Sync,
F: Sync,
K: Sync,
V: Sync,
impl<K, V, BF, F> Unpin for Merger<K, V, BF, F> where
BF: Unpin,
F: Unpin,
K: Unpin,
V: Unpin,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.