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

Method try_from_object

crates/vm/src/ospath.rs:284–286  ·  view source on GitHub ↗
(vm: &VirtualMachine, obj: PyObjectRef)

Source from the content-addressed store, hash-verified

282
283impl TryFromObject for OsPath {
284 fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self> {
285 PathConverter::new().try_path(obj, vm)
286 }
287}
288
289// path_t with allow_fd in CPython

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
try_pathMethod · 0.80
try_path_or_fdMethod · 0.80

Tested by

no test coverage detected