pub trait ActivationInterface<'f, Fm: FnMarker = ()> {
// Required methods
fn variables(&self) -> &VariableBindings<'f>;
fn functions(&self) -> &FunctionBindings<'f>;
}
Expand description
Interface for providing variable and function bindings during evaluation.
This trait defines the interface that activation types must implement to provide variable and function bindings to the CEL evaluator.
§Type Parameters
'f
- Lifetime of the functions in the bindingsFm
- Function marker type indicating sync/async function support
Required Methods§
Sourcefn variables(&self) -> &VariableBindings<'f>
fn variables(&self) -> &VariableBindings<'f>
Returns a reference to the variable bindings.
Variable bindings map variable names to their values during evaluation.
Sourcefn functions(&self) -> &FunctionBindings<'f>
fn functions(&self) -> &FunctionBindings<'f>
Returns a reference to the function bindings.
Function bindings provide runtime function implementations that can override or supplement the functions registered in the environment.
Implementations on Foreign Types§
Source§impl ActivationInterface<'static> for &()
Empty activation implementation for references to the unit type.
impl ActivationInterface<'static> for &()
Empty activation implementation for references to the unit type.
fn variables(&self) -> &VariableBindings<'static>
fn functions(&self) -> &FunctionBindings<'static>
Source§impl ActivationInterface<'static> for ()
Empty activation implementation for the unit type.
impl ActivationInterface<'static> for ()
Empty activation implementation for the unit type.
This allows you to use ()
as an activation when no variable or function
bindings are needed.