MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / compile

Method compile

cel/src/lib.rs:182–187  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

180
181impl Program {
182 pub fn compile(source: &str) -> Result<Program, ParseErrors> {
183 let parser = Parser::default();
184 parser
185 .parse(source)
186 .map(|expression| Program { expression })
187 }
188
189 pub fn execute(&self, context: &Context) -> ResolveResult {
190 Value::resolve(&self.expression, context)

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected