pub trait ApplyDiff<K: Ord + Clone, V: Clone> {
    type DiffType;

    // Required method
    fn apply(&mut self, diff: Self::DiffType);
}
Expand description

A trait for applying the difference between two objects.

Required Associated Types§

source

type DiffType

The type that describes the difference between two objects.

Required Methods§

source

fn apply(&mut self, diff: Self::DiffType)

Applies the provided changes described by Self::DiffType to the object implementing this trait.

Implementors§

source§

impl<K: Ord + Clone, V: Clone, T: KvMap<K, V>> ApplyDiff<K, V> for T

§

type DiffType = KvMapDiff<K, V>