pub struct SnapshotNode<K, V> {
pub key: K,
pub revision: Revision,
pub dirty: bool,
pub value: Option<V>,
pub fingerprint: Option<ValueFingerprint>,
pub dependencies: Vec<Observation<K>>,
}Expand description
One memo node inside a graph snapshot.
Fields§
§key: KThe query key.
revision: RevisionThe memo revision.
dirty: boolWhether the memo needs verification before reuse.
value: Option<V>The memoized value, when one exists.
fingerprint: Option<ValueFingerprint>The memoized value fingerprint.
dependencies: Vec<Observation<K>>Dependency observations captured during the last execution.
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for SnapshotNode<K, V>
impl<K: Clone, V: Clone> Clone for SnapshotNode<K, V>
Source§fn clone(&self) -> SnapshotNode<K, V>
fn clone(&self) -> SnapshotNode<K, V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<K: Eq, V: Eq> Eq for SnapshotNode<K, V>
impl<K: PartialEq, V: PartialEq> StructuralPartialEq for SnapshotNode<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for SnapshotNode<K, V>
impl<K, V> RefUnwindSafe for SnapshotNode<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for SnapshotNode<K, V>
impl<K, V> Sync for SnapshotNode<K, V>
impl<K, V> Unpin for SnapshotNode<K, V>
impl<K, V> UnsafeUnpin for SnapshotNode<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for SnapshotNode<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