Expand description
Namespace behavior for the SIM runtime: modules, packages, and imports.
The kernel defines the registry and operation contracts; this crate supplies the concrete namespace organ (namespaces, import options, export/rename/ shadow handling).
Structs§
- Import
Options - Options controlling a single
Namespace::import_fromcall. - Namespace
- A named scope of symbol bindings: the core value of the namespace organ.
- Namespace
Entry - One binding in a
Namespace: a name, its resolution target, and its source.
Enums§
- Namespace
Binding Source - Where a
NamespaceEntrybinding came from. - Namespace
Kind - Whether a
Namespaceis a package or a module scope.
Functions§
- namespace_
export_ op_ key - Operation key for exporting a binding from a namespace.
- namespace_
import_ op_ key - Operation key for importing an exported binding into a namespace.
- namespace_
module_ op_ key - Operation key for declaring a module namespace.
- namespace_
op_ keys - The full set of operation keys exposed by the namespace organ.
- namespace_
organ_ symbol - The symbol that identifies the namespace organ in the claim store.
- namespace_
package_ op_ key - Operation key for declaring a package namespace.
- namespace_
rename_ op_ key - Operation key for importing a binding under a renamed alias.
- namespace_
shadow_ conflict_ symbol - The diagnostic code attached to a namespace shadow-conflict diagnostic.
- namespace_
shadow_ op_ key - Operation key for importing a binding that shadows an existing one.
- publish_
namespace_ organ_ claims - Publish the namespace organ and its operation keys as standard organ claims.
- publish_
namespace_ organ_ claims_ for_ lib - Publish the namespace organ claims as part of a loaded lib receipt.