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

Method try_from_object

crates/vm/src/windows.rs:67–70  ·  view source on GitHub ↗
(vm: &VirtualMachine, obj: PyObjectRef)

Source from the content-addressed store, hash-verified

65
66impl TryFromObject for WinHandle {
67 fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self> {
68 let handle = HandleInt::try_from_object(vm, obj)?;
69 Ok(WinHandle(handle as HANDLE))
70 }
71}
72
73impl ToPyObject for WinHandle {

Callers

nothing calls this directly

Calls 1

WinHandleClass · 0.85

Tested by

no test coverage detected