Struct treediff::tools::Merger[][src]

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.

Examples

Please see the tests for usage examples.

Implementations

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

Trait Implementations

Performs the conversion.

… 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.

Return a new merger with the given initial value v, and the DefaultMutableFilter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.