Skip to main content

Module id

Module id 

Source
Expand description

Ids: a node another node refers to lives in an arena, an IdVec, and is referred to by its index there, a u32 newtype per kind. A kind’s id indexes only its own arena, so a ChanId can never look up a process.

System items and every mapping are indexed in the environment’s arenas, a program’s locals in its PD’s locals there, its events and processes in its body’s, and a body’s variables in its own body_vars: an id is meaningful only beside the arena it came from.

Structs§

BodyVarId
A variable of one process or event body, in that body’s body_vars.
ChanId
A channel, in the environment’s chans.
ConstId
A system const, in the environment’s consts.
EventId
An event, in its program’s body’s events.
FfnId
A called foreign function, in the environment’s ffis.
IdVec
A Vec<T> indexed by I.
LocalVarId
A local variable, in its program’s locals in the environment.
MappingId
A mapping, in the environment’s mappings, project-wide.
ModuleId
An imported file, in the foreign store’s modules.
MrId
A memory region, in the environment’s mrs.
PdId
A protection domain, in the environment’s pds; at most PdId::MAX.
ProcId
A process, in its program’s body’s processes.
StructId
A system struct, in the environment’s structs.

Traits§

Idx
An arena index.