std 1.0.1
The f64 CEL standard library
Loading...
Searching...
No Matches
cel::stdlib Namespace Reference

Installs the f64 CEL standard library into an operation lookup. More...

Functions

void install (op_lookup &lookup)
 Registers the Rust cel-std f64 signatures, excluding powi.

Detailed Description

Installs the f64 CEL standard library into an operation lookup.

Function Documentation

◆ install()

void cel::stdlib::install ( op_lookup & lookup)

Registers the Rust cel-std f64 signatures, excluding powi.

Ordinary and receiver calls share these persistent registrations, including inside closure bodies. sin_cos returns a structural (f64, f64) tuple. The lookup owns all registration state; emitted programs retain their callbacks.

Precondition
None of these exact signatures is already registered.

Registration failures propagate; installation need not leave the lookup unchanged. Numeric evaluation follows the linked CEL operation contracts. clamp throws std::invalid_argument("invalid clamp bounds") for reversed or NaN bounds.

Expected complexity: O(s + 1) time for s existing signatures under the installed names, with constant additional library registration storage.

See also
Evaluate numeric CEL expressions for a complete installation and execution example.
Library reference for the supported signatures and language-book links.