(&self, name: &'static str, f: F)
| 77 | } |
| 78 | |
| 79 | pub fn new_function<F, FKind>(&self, name: &'static str, f: F) -> PyRef<PyNativeFunction> |
| 80 | where |
| 81 | F: IntoPyNativeFn<FKind>, |
| 82 | { |
| 83 | let def = self |
| 84 | .ctx |
| 85 | .new_method_def(name, f, PyMethodFlags::empty(), None); |
| 86 | def.build_function(self) |
| 87 | } |
| 88 | |
| 89 | pub fn new_method<F, FKind>( |
| 90 | &self, |
no test coverage detected