pub struct Merger<K, V, BF, F> { /* private fields */ }
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.
§Examples
Please see the tests for usage examples.
Implementations§
source§impl<K, V, BF, F> Merger<K, V, BF, F>
impl<K, V, BF, F> Merger<K, V, BF, F>
sourcepub fn into_inner(self) -> V
pub fn into_inner(self) -> V
Consume the merger and return the contained target Value, which is the result of the merge operation.
sourcepub fn filter_mut(&mut self) -> &mut BF
pub fn filter_mut(&mut self) -> &mut BF
Returns a mutable borrow to the MutableFilter
instance
Trait Implementations§
Auto Trait Implementations§
impl<K, V, BF, F> Freeze for Merger<K, V, BF, F>
impl<K, V, BF, F> RefUnwindSafe for Merger<K, V, BF, F>
impl<K, V, BF, F> Send for Merger<K, V, BF, F>
impl<K, V, BF, F> Sync for Merger<K, V, BF, F>
impl<K, V, BF, F> Unpin for Merger<K, V, BF, F>
impl<K, V, BF, F> UnwindSafe for Merger<K, V, BF, F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more