Struct NodeData
pub struct NodeData {
pub row: OwnedRow,
pub relationships: BTreeMap<RelId, Vec<CaughtNode>>,
}Expand description
An owned, fully-materialized node: a row plus its relationship subtrees (keyed by
relationship slot). Re-exported from the engine (where it is CaughtNode).
A fully-materialized node: the row cells plus eagerly drained
relationships. The comparison unit for a fetch/push assertion, and the owned
node a Graph::add_change_sink consumer receives.
Relationships are keyed by their resolved [RelId] slot in a BTreeMap, so
the diff is slot-stable regardless of insertion order; the child Vec within
a relationship preserves the operator’s sort order (the order is part of
the contract — never re-sort it, 11 §3.8).
Fields§
§row: OwnedRow§relationships: BTreeMap<RelId, Vec<CaughtNode>>Trait Implementations§
§impl Clone for CaughtNode
impl Clone for CaughtNode
§fn clone(&self) -> CaughtNode
fn clone(&self) -> CaughtNode
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 more§impl Debug for CaughtNode
impl Debug for CaughtNode
§impl PartialEq for CaughtNode
impl PartialEq for CaughtNode
impl Eq for CaughtNode
Auto Trait Implementations§
impl Freeze for CaughtNode
impl RefUnwindSafe for CaughtNode
impl Send for CaughtNode
impl Sync for CaughtNode
impl Unpin for CaughtNode
impl UnsafeUnpin for CaughtNode
impl UnwindSafe for CaughtNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.