Skip to main content

Crate cel_std

Crate cel_std 

Source
Expand description

CEL standard library: min, max, clamp, and related numeric functions built on Rust’s standard library, registered via [cel_parser::OpLookup::register_operation].

§Examples

use cel_parser::OpLookup;

let mut lookup = OpLookup::new();
cel_std::install(&mut lookup);

Functions§

install
Registers every CEL standard-library function on lookup: min, max, clamp, abs, signum, sqrt, floor, ceil, trunc, fract, and round_ties_even.