pub struct NodeId {
pub idx: u32,
pub gen: u32,
}Expand description
A handle to an operator slot in the Graph arena. idx is the slot index;
gen is the slot’s generation, bumped every time the slot is freed (a
pipeline teardown — Graph::destroy_pipeline). The generation is what makes
slot REUSE safe: a stale handle to a torn-down pipeline carries the old gen, so
it fails the generation check in Graph::node instead of silently aliasing the
new tenant of a recycled slot. Distinct from physical removal (which would shift
indices and is impossible here) — the slot keeps its index across reuse.
Fields§
§idx: u32§gen: u32Implementations§
Trait Implementations§
impl Copy for NodeId
impl Eq for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnsafeUnpin for NodeId
impl UnwindSafe for NodeId
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