Retrieve a function by its name.
(&self, name: &str)
| 44 | |
| 45 | /// Retrieve a function by its name. |
| 46 | pub fn get_by_name(&self, name: &str) -> Option<&'a Function> { |
| 47 | let index = self.index_of(name)?; |
| 48 | self.get_by_index(index) |
| 49 | } |
| 50 | |
| 51 | /// Retrieve a function from a [FuncRef] within a [Function]. TODO this should be optimized, if possible, as |
| 52 | /// currently it retrieves the function name as a string and performs string matching. |
no test coverage detected