Struct treediff::tools::DefaultMutableFilter
[−]
[src]
pub struct DefaultMutableFilter;
The default implementation used when when creating a new Merger
from any Value
type.
If you want to choose your own filter, use Merger::with_filter(...)
instead.
Trait Implementations
impl MutableFilter for DefaultMutableFilter
[src]
fn resolve_conflict<'a, K: Clone + Display, V: Clone>(&mut self,
_keys: &[K],
_old: &'a V,
new: &'a V,
_self: &mut V)
-> Option<Cow<'a, V>>
_keys: &[K],
_old: &'a V,
new: &'a V,
_self: &mut V)
-> Option<Cow<'a, V>>
Called during Delegate::modified(...)
, returns None
to cause the Value at the keys
to be removed, or any Value to be set in its place. Read more
fn resolve_removal<'a, K: Clone + Display, V: Clone>(&mut self,
_keys: &[K],
_removed: &'a V,
_self: &mut V)
-> Option<Cow<'a, V>>
_keys: &[K],
_removed: &'a V,
_self: &mut V)
-> Option<Cow<'a, V>>
Called during Delegate::removed(...)
, returns None
to allow the Value at the keys
path to be removed, or any Value to be set in its place instead. Read more