Skip to main content

Module id

Module id 

Source
Expand description

Typed identifiers.

All ids are u32, allocated monotonically, never reused (journal replay stays deterministic; holes after a purge are normal). 0 is a valid id; “no value” is encoded as u32::MAX — every newtype exposes it as its NONE constant. The 4.29-billion ceiling per kind is far above the 1M capacity passport.

Structs§

EntityId
Identifier of an entity — a graph node created lazily on first mention.
FactId
Identifier of a fact — the unit of memory.

Constants§

NONE_U32
The raw “no value” sentinel shared by every id kind.