pub struct ComponentSlotStorage<C: ExecutableNode, const N: usize = { crate::config::MAX_CLASS_INSTANCES }, const PUBS: usize = { crate::config::MAX_CELL_ENTITIES }, const SVCS: usize = { crate::config::MAX_CELL_ENTITIES }, const ACTC: usize = { crate::config::MAX_CELL_ENTITIES }, const ACTS: usize = { crate::config::MAX_CELL_ENTITIES }, const SSRV: usize = { crate::config::MAX_CELL_ENTITIES }> { /* private fields */ }Expand description
phase-391 W5.3b — per-class slot storage the nros::node! macro emits.
One static of this type per macro expansion, so C is CONCRETE at the
emission site and the storage is sized size_of::<TypedSlot<C>>() exactly —
no byte-budget guessing on the FFI install path. The type is public API for
the MACRO EMIT only; it never crosses the C ABI (the trampoline keeps its
(ptr, ptr, ptr) -> i32 shape), which is what keeps the const-generic
parameter legal under the “no const generics on FFI-visible types” rule.
N is the per-class INSTANCE cap: the launch path bakes one identity per
plan node and can name the same class twice, so this is an array, not one
slot. Taking past N is a registration error (take returns None), the
same Full shape as the executor’s node table. Slots are one-shot — next
never rewinds — so storage is never re-initialised under a stale reference.