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

Method to_string_lossy

crates/vm/src/ospath.rs:246–248  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

244 }
245
246 pub fn to_string_lossy(&self) -> alloc::borrow::Cow<'_, str> {
247 self.path.to_string_lossy()
248 }
249
250 pub fn into_cstring(self, vm: &VirtualMachine) -> PyResult<alloc::ffi::CString> {
251 alloc::ffi::CString::new(self.into_bytes()).map_err(|err| err.to_pyexception(vm))

Callers 10

runFunction · 0.45
get_locale_infoFunction · 0.45
init_path_configFunction · 0.45
calculate_prefixFunction · 0.45
calculate_exec_prefixFunction · 0.45
calculate_stdlib_dirFunction · 0.45
to_os_error_builderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected