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

Method try_path

crates/vm/src/ospath.rs:178–180  ·  view source on GitHub ↗

Convert to OsPath directly

(&self, obj: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

176
177 /// Convert to OsPath directly
178 pub fn try_path(&self, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<OsPath> {
179 self.try_path_inner(obj, false, vm)
180 }
181}
182
183/// path_t output - the converted path

Callers 2

try_from_objectMethod · 0.80
renameFunction · 0.80

Calls 1

try_path_innerMethod · 0.80

Tested by

no test coverage detected