Crate superscript

Source

Modules§

ast
models

Structs§

DisplayableError
DisplayableValue

Traits§

HostContext

Functions§

evaluate_ast
Evaluate a CEL expression with the given AST without any context @param ast The AST of the expression, serialized as JSON. This AST should contain already resolved dynamic variables. @return The result of the evaluation, either “true” or “false”
evaluate_ast_with_context
Evaluate a CEL expression with the given AST @param ast The AST Execution Context, serialized as JSON. This defines the AST, the variables, and the platform properties. @param host The host context to use for resolving properties @return The result of the evaluation, either “true” or “false”
evaluate_with_context
Evaluate a CEL expression with the given definition by compiling it first. @param definition The definition of the expression, serialized as JSON. This defines the expression, the variables, and the platform properties. @param host The host context to use for resolving properties @return The result of the evaluation, either “true” or “false”
maybe
parse_to_ast
Transforms a given CEL expression into a CEL AST, serialized as JSON. @param expression The CEL expression to parse @return The AST of the expression, serialized as JSON