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

Method find_overload

cel/src/env.rs:119–124  ·  view source on GitHub ↗

Finds a global function overload that matches the given name and arguments.

(&self, name: &str, args: &[Cow<dyn Val>])

Source from the content-addressed store, hash-verified

117
118 /// Finds a global function overload that matches the given name and arguments.
119 pub fn find_overload(&self, name: &str, args: &[Cow<dyn Val>]) -> Option<Function> {
120 match self.functions.get(name) {
121 None => None,
122 Some(fn_decl) => fn_decl.find_overload(false, args),
123 }
124 }
125
126 /// Adds a member function overload to the environment.
127 ///

Callers 2

find_member_overloadMethod · 0.45
resolve_valMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected