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

Method to_wide_cstring

crates/vm/src/ospath.rs:255–257  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

253
254 #[cfg(windows)]
255 pub fn to_wide_cstring(&self, vm: &VirtualMachine) -> PyResult<widestring::WideCString> {
256 widestring::WideCString::from_os_str(&self.path).map_err(|err| err.to_pyexception(vm))
257 }
258
259 pub fn filename(&self, vm: &VirtualMachine) -> PyObjectRef {
260 if let Some(ref origin) = self.origin {

Callers

nothing calls this directly

Calls 1

to_pyexceptionMethod · 0.45

Tested by

no test coverage detected