MCPcopy Index your code
hub / github.com/RustPython/RustPython / into_getter

Method into_getter

crates/vm/src/function/getset.rs:60–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58pub 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
65impl<F, T, R> IntoPyGetterFunc<(OwnedParam<T>, R, VirtualMachine)> for F

Callers 1

with_getMethod · 0.80

Implementers 1

getset.rscrates/vm/src/function/getset.rs

Calls 2

newFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected