pub fn builtin_type_resolver() -> Box<dyn TypeResolver>Expand description
Returns the builtin scalar and finite range type-function resolver.
A host embedding cel-parser with its own TypeResolver (one that also knows
host-specific custom types) can delegate any name it doesn’t itself recognize to this
resolver, so built-in types stay visible inside host-embedded CEL expressions.
The returned resolver is uniquely owned and zero-sized; its box does not allocate. Range resolution initializes shared descriptor metadata on its first use.
§Examples
let resolver = cel_parser::builtin_type_resolver();
assert!(resolver.resolve_named_type("u32", &[]).is_some());