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

Method to_pyresult

crates/vm/src/windows.rs:58–61  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

56
57impl<T: WindowsSysResultValue> ToPyResult for WindowsSysResult<T> {
58 fn to_pyresult(self, vm: &VirtualMachine) -> PyResult {
59 let ok = self.into_pyresult(vm)?;
60 Ok(ok.to_pyobject(vm))
61 }
62}
63
64type HandleInt = isize;

Callers 2

slot_newMethod · 0.45
gen_throwMethod · 0.45

Calls 2

into_pyresultMethod · 0.80
to_pyobjectMethod · 0.45

Tested by

no test coverage detected