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

Method to_pyresult

crates/vm/src/object/ext.rs:679–681  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

677{
678 #[inline(always)]
679 fn to_pyresult(self, vm: &VirtualMachine) -> PyResult {
680 Ok(self.to_pyobject(vm))
681 }
682}
683
684impl<T, E> ToPyResult for Result<T, E>

Callers 15

getMethod · 0.45
CreatePipeFunction · 0.45
DuplicateHandleFunction · 0.45
GetExitCodeProcessFunction · 0.45
as_numberMethod · 0.45
int.rsFile · 0.45
number_opMethod · 0.45
as_numberMethod · 0.45
as_numberMethod · 0.45
object_getstate_defaultFunction · 0.45
as_numberMethod · 0.45
number_opMethod · 0.45

Calls 2

to_pyobjectMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected