Finds a global function overload that matches the given name and arguments.
(&self, name: &str, args: &[Cow<dyn Val>])
| 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 | /// |
no test coverage detected