pub struct Relationship<'g> {
pub slot: RelId,
pub thunk: Box<dyn Fn() -> Box<dyn Iterator<Item = Node<'g>> + 'g> + 'g>,
}Fields§
§slot: RelIdThe resolved relationship slot (foundations §3.4 — index, never a string;
the name lives in Schema::relationships[slot]). The View maps it back to
a name for output.
thunk: Box<dyn Fn() -> Box<dyn Iterator<Item = Node<'g>> + 'g> + 'g>Auto Trait Implementations§
impl<'g> Freeze for Relationship<'g>
impl<'g> !RefUnwindSafe for Relationship<'g>
impl<'g> !Send for Relationship<'g>
impl<'g> !Sync for Relationship<'g>
impl<'g> Unpin for Relationship<'g>
impl<'g> UnsafeUnpin for Relationship<'g>
impl<'g> !UnwindSafe for Relationship<'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