Enum zkstate::ChangeType [−][src]
pub enum ChangeType<'a, K, V> where
V: 'a, {
Removed(Vec<K, Global>, &'a V),
Added(Vec<K, Global>, &'a V),
Unchanged(Vec<K, Global>, &'a V),
Modified(Vec<K, Global>, &'a V, &'a V),
}
Expand description
Identifies a type of change at a given Key path, for use with the Recorder
.
The Key path is followed to know what happened with the Value V
contained in the variants.
Variants
The Value was removed
The Value was added
No change was performed to the Value
The first Value was modified and became the second Value
Trait Implementations
impl<'a, K, V> PartialEq<ChangeType<'a, K, V>> for ChangeType<'a, K, V> where
K: PartialEq<K>,
V: 'a + PartialEq<V>,
impl<'a, K, V> PartialEq<ChangeType<'a, K, V>> for ChangeType<'a, K, V> where
K: PartialEq<K>,
V: 'a + PartialEq<V>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.