Skip to main content

Crate sim_lib_namespace

Crate sim_lib_namespace 

Source
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§

ImportOptions
Options controlling a single Namespace::import_from call.
Namespace
A named scope of symbol bindings: the core value of the namespace organ.
NamespaceEntry
One binding in a Namespace: a name, its resolution target, and its source.

Enums§

NamespaceBindingSource
Where a NamespaceEntry binding came from.
NamespaceKind
Whether a Namespace is 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.