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

Method get

crates/vm/src/function/getset.rs:71–74  ·  view source on GitHub ↗
(&self, obj: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

69 R: ToPyResult,
70{
71 fn get(&self, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult {
72 let obj = T::try_from_object(vm, obj)?;
73 (self)(obj, vm).to_pyresult(vm)
74 }
75}
76
77impl<F, S, R> IntoPyGetterFunc<(BorrowedParam<S>, R, VirtualMachine)> for F

Callers 3

get_kwargMethod · 0.45
get_optional_kwargMethod · 0.45
into_getterMethod · 0.45

Calls 1

to_pyresultMethod · 0.45

Tested by

no test coverage detected