(&mut self, name: &str, function: F)
| 284 | |
| 285 | impl FunctionRegistry { |
| 286 | pub(crate) fn add<F, T>(&mut self, name: &str, function: F) |
| 287 | where |
| 288 | F: IntoFunction<T> + 'static + Send + Sync, |
| 289 | T: 'static, |
| 290 | { |
| 291 | self.functions |
| 292 | .insert(name.to_string(), function.into_function()); |
| 293 | } |
| 294 | |
| 295 | #[allow(dead_code)] |
| 296 | pub(crate) fn get(&self, name: &str) -> Option<&Function> { |
no test coverage detected