pub struct Node<'g> {
pub row: OwnedRow,
pub rels: Vec<Relationship<'g>>,
}Expand description
A row plus its lazily-produced relationships.
Relationships are index-addressed (Vec, not a string map) and each is a
thunk producing a fresh stream per call — mirroring JS
relationships: Record<string, () => Stream>. The thunk owns everything it
needs (graph ref + captured-by-value overlay), so it can be invoked at view
time without reading any live operator field.
Fields§
§row: OwnedRow§rels: Vec<Relationship<'g>>Implementations§
Auto Trait Implementations§
impl<'g> Freeze for Node<'g>
impl<'g> !RefUnwindSafe for Node<'g>
impl<'g> !Send for Node<'g>
impl<'g> !Sync for Node<'g>
impl<'g> Unpin for Node<'g>
impl<'g> UnsafeUnpin for Node<'g>
impl<'g> !UnwindSafe for Node<'g>
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