pub struct StorageId {
pub idx: u32,
pub gen: u32,
}Expand description
Index into the graph’s parallel storage arena (foundations §6.4). A
stateful operator (Take/Cap/Exists, spec 07) is handed one of these at
build time and reads/writes its scratch state via Graph::storage. The
operator never owns its store: the indirection is what lets the client keep
it in RAM (MemoryStorage) while the
server later spills it to SQLite (10 §1.1) without touching operator code.
Distinct newtype from NodeId so the two index spaces can’t be confused.
Generational for the same reason (storage slots are freed + reused on teardown).
Fields§
§idx: u32§gen: u32Trait Implementations§
impl Copy for StorageId
impl Eq for StorageId
impl StructuralPartialEq for StorageId
Auto Trait Implementations§
impl Freeze for StorageId
impl RefUnwindSafe for StorageId
impl Send for StorageId
impl Sync for StorageId
impl Unpin for StorageId
impl UnsafeUnpin for StorageId
impl UnwindSafe for StorageId
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