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

    // Required method
    fn diff(&self, other: &Self) -> Self::DiffType;
}
Expand description

A trait for computing the difference between two objects.

Required Associated Types§

source

type DiffType

The type that describes the difference between two objects.

Required Methods§

source

fn diff(&self, other: &Self) -> Self::DiffType

Returns a Self::DiffType object that represents the difference between this object and other.

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type DiffType = KvMapDiff<K, V>