Expand description
CEL expression unparser (AST to source text).
This module converts a CEL AST back into source text. The output is semantically equivalent to the original expression but may differ in formatting (whitespace, parenthesization, etc.).
§Example
use cel_core::unparser::ast_to_string;
use cel_core::parser::parse;
let ast = parse("x + 1").ast.unwrap();
let source = ast_to_string(&ast);
assert_eq!(source, "x + 1");Functions§
- ast_
to_ string - Convert a CEL AST to source text.