rscel 1.0.8

Cel interpreter in rust
Documentation
1
2
3
4
5
6
7
8
9
use crate::interp::Interpreter;
use crate::{BindContext, CelContext};

pub(super) fn setup_context<'a>(ctx: &'a Interpreter<'a>) -> (CelContext, BindContext<'a>) {
    (
        ctx.cel_copy().unwrap_or_else(CelContext::new),
        ctx.bindings_copy().unwrap_or_else(BindContext::new),
    )
}