Module workspace

Module workspace 

Source

Structs§

WorkspaceResolver
Resolver used by the runtime to access the caller workspace when builtins (such as save) need to look up variables by name.

Functions§

global_names
Return the list of global variable names visible to the active workspace.
is_available
Returns true when a resolver has been registered.
lookup
Lookup a variable by name in the active workspace.
register_workspace_resolver
Register the workspace resolver. Ignition installs this once during initialization so that language builtins can query variables lazily.
snapshot
Snapshot the active workspace into a vector of (name, value) pairs. Returns None when no resolver/workspace is active.