(self)
| 58 | pub trait IntoPyGetterFunc<T>: PyThreadingConstraint + Sized + 'static { |
| 59 | fn get(&self, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult; |
| 60 | fn into_getter(self) -> PyGetterFunc { |
| 61 | Box::new(move |vm, obj| self.get(obj, vm)) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | impl<F, T, R> IntoPyGetterFunc<(OwnedParam<T>, R, VirtualMachine)> for F |