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

Method get_function

cel/src/context.rs:191–196  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

189
190 #[allow(dead_code)]
191 pub(crate) fn get_function(&self, name: &str) -> Option<&Function> {
192 match self {
193 Context::Root { functions, .. } => functions.get(name),
194 Context::Child { parent, .. } => parent.get_function(name),
195 }
196 }
197
198 pub fn add_function<T: 'static, F>(&mut self, name: &str, value: F)
199 where

Callers 1

resolve_valMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected