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), }

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

Removed(Vec<K, Global>, &'a V)

The Value was removed

Added(Vec<K, Global>, &'a V)

The Value was added

Unchanged(Vec<K, Global>, &'a V)

No change was performed to the Value

Modified(Vec<K, Global>, &'a V, &'a V)

The first Value was modified and became the second Value

Trait Implementations

impl<'a, K, V> Debug for ChangeType<'a, K, V> where
    K: Debug,
    V: 'a + Debug
[src]

impl<'a, K, V> PartialEq<ChangeType<'a, K, V>> for ChangeType<'a, K, V> where
    K: PartialEq<K>,
    V: 'a + PartialEq<V>, 
[src]

impl<'a, K, V> StructuralPartialEq for ChangeType<'a, K, V> where
    V: 'a, 
[src]

Auto Trait Implementations

impl<'a, K, V> RefUnwindSafe for ChangeType<'a, K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, K, V> Send for ChangeType<'a, K, V> where
    K: Send,
    V: Sync

impl<'a, K, V> Sync for ChangeType<'a, K, V> where
    K: Sync,
    V: Sync

impl<'a, K, V> Unpin for ChangeType<'a, K, V> where
    K: Unpin

impl<'a, K, V> UnwindSafe for ChangeType<'a, K, V> where
    K: UnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.