Skip to main content

Module primitives

Module primitives 

Source
Expand description

The newtype spine: zero-cost, transparent ids that never appear as a bare integer in new code.

Structsยง

ByteClassId
Index of a byte class into ClassTable.
MintermId
Identifier of a minterm (a byte-equivalence class in a collapsed alphabet).
NodeId
Index of a node in the arena IR. NodeId(0) is a valid node; range is checked on decode.
StateId
Index of a state in the reference engine (dense 0..n; StateId(0) is canonical DEAD).
TokenId
Identifier of a vocabulary token.
TrieNodeId
Index of a node in a vocabulary trie. TrieNodeId(0) is the root.