Skip to main content

op_lookup

Function op_lookup 

Source
pub fn op_lookup() -> OpLookup
Expand description

Builds a cel_parser::OpLookup with the CEL standard and Euclid libraries installed, so every adam-lang source build_sheet parses has the same function set (min, max, clamp, etc.) available.

Every source parsed through this function therefore has cel-std installed — a source that deliberately relies on the standard library being absent cannot use this function or build_sheet; construct an AdamParser directly with an empty OpLookup instead.

  • Complexity: O(s²) in the number of installed signatures.

§Examples

let lookup = adam_web_ui::build::op_lookup();
assert!(lookup.record_schema("Rect").is_some());