pub enum DeltaEntry<K, V> {
Insert {
key: K,
value: V,
logical_time: u64,
},
Delete {
key: K,
logical_time: u64,
},
}Expand description
A signed delta entry representing an incremental change.
The fundamental unit of IVM propagation. Changes flow through the DAG as collections of delta entries, which views transform into output deltas.
§Semantics
Insert(key, value): New or updated mapping atkey.Delete(key): Key removed from the materialized view.
Both variants carry a logical_time for causal ordering within an epoch.
Variants§
Insert
Insert or update: (key, value, logical_time).
Weight = +1 in signed-tuple notation.
Delete
Delete: (key, logical_time).
Weight = -1 in signed-tuple notation.
Implementations§
Source§impl<K, V> DeltaEntry<K, V>
impl<K, V> DeltaEntry<K, V>
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for DeltaEntry<K, V>
impl<K: Clone, V: Clone> Clone for DeltaEntry<K, V>
Source§fn clone(&self) -> DeltaEntry<K, V>
fn clone(&self) -> DeltaEntry<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<K, V> StructuralPartialEq for DeltaEntry<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for DeltaEntry<K, V>
impl<K, V> RefUnwindSafe for DeltaEntry<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for DeltaEntry<K, V>
impl<K, V> Sync for DeltaEntry<K, V>
impl<K, V> Unpin for DeltaEntry<K, V>
impl<K, V> UnsafeUnpin for DeltaEntry<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for DeltaEntry<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more