Trait miden_crypto::utils::collections::ApplyDiff
source · 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§
Required Methods§
sourcefn apply(&mut self, diff: Self::DiffType)
fn apply(&mut self, diff: Self::DiffType)
Applies the provided changes described by Self::DiffType to the object implementing this trait.