Skip to main content

Module checking

Module checking 

Source
Expand description

Owns callback-free checking catalogs.

Project host registrations once, or import a validated description, then borrow the resulting environment for every expression:

use cel_parser::checking::{CheckingBuilder, CheckingEnvironment};
let environment = CheckingBuilder::new().finish().unwrap();
let imported = CheckingEnvironment::from_description(environment.description().clone()).unwrap();
assert!(imported.resolve_type("i32").is_some());

Structs§

Capabilities
Describes value operations without retaining their implementations.
CheckingBuilder
Builds an offline catalog by reading retained host registration facts.
CheckingDescription
An owned serializable checking catalog without Rust identities or callbacks.
CheckingEnvironment
Owns validated nominal identities and indexed semantic contracts.
CheckingReport
Retains an inferred value, definite errors, and unavailable-metadata diagnostics.
FunctionDescription
Describes a function-value marker and its dispatch name.
HostTypeBinding
Binds host nominal identities explicitly to one checking catalog.
MetadataError
Rejects invalid descriptions or registrations lacking checking metadata.
NominalLeaf
A nominal identity, diagnostic name, and callback-free capabilities.
OperationDescription
Describes an overload; member operands begin with the receiver.
RecordDescription
Describes required record fields in canonical order.
TypeDescription
Describes a nominal leaf and its source aliases.
TypeFunctionDescription
A finite type-function overload using catalog-local structural identities.

Enums§

CheckingType
Describes a recursive shape using catalog-local leaf references.
MetadataAvailability
Records whether the catalog is authoritative for application declarations.

Functions§

check_expr_with_environment
Checks an expression using only catalog facts and lexical declarations.