Skip to main content

Module context

Module context 

Source
Expand description

Execution context: stacks, storage, operator table, and state.

Structs§

Context
GroupFrame
One frame on Context::group_stack. Captures paint operators emitted between a begin* and a matching close. The active capture target is always Self::display_list; what happens to it on close depends on Self::kind.
LoopState
Loop state for for, repeat, loop, and forall.
NameCache
Pre-interned NameIds for frequently-used names in hot paths.
OcgRecord
One entry in Context::ocg_registry. defineocg allocates these and indexes them by the OCG’s interned NameId so beginoptionalcontent can resolve a name back to its ocg_id and the default_visible flag the producer set.
OpEntry
Operator table entry: function pointer + name.

Enums§

GroupKind
What a GroupFrame is capturing, determining what gets emitted when it closes.
LoopType
Type of loop iteration.

Type Aliases§

ExecSyncFn
Function pointer type for synchronous procedure execution. Set by the engine crate to enable inline PS procedure calls from operators.