pub fn checking_environment_with_binding(
types: &TypeRegistry,
lookup: &OpLookup,
) -> Result<(AdamCheckingEnvironment, HostTypeBinding), MetadataError>Expand description
Projects the effective registrations together with an explicit native catalog binding.
The binding is host-only data and never enters serialized metadata.
§Errors
Rejects unsupported scopes and incomplete registrations.
- Complexity: Registry projection and catalog finalization plus expected O(n + m log(m + 1)) time and O(n + m) space for n catalog leaves and m Adam registrations.
§Examples
let (_, binding) = adam_lang::checking_environment_with_binding(
&adam_lang::TypeRegistry::new(), &cel_parser::OpLookup::new()).unwrap();
let mut modules = adam_lang::ModuleSet::new();
modules.set_native_binding(binding);