Struct cel_interpreter::context::Context [−][src]
pub struct Context { pub variables: HashMap<String, CelType>, pub functions: HashMap<String, Box<dyn Fn(Option<&CelType>, &[Expression], &Context) -> CelType>>, }
Fields
variables: HashMap<String, CelType>
functions: HashMap<String, Box<dyn Fn(Option<&CelType>, &[Expression], &Context) -> CelType>>
Implementations
impl Context
[src]
impl Context
[src]pub fn add_variable(&mut self, name: String, value: CelType)
[src]
pub fn add_function<F: 'static>(&mut self, name: String, value: F) where
F: Fn(Option<&CelType>, &[Expression], &Context) -> CelType,
[src]
F: Fn(Option<&CelType>, &[Expression], &Context) -> CelType,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Context
impl !RefUnwindSafe for Context
impl !UnwindSafe for Context
impl !UnwindSafe for Context