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

Method new_str

crates/vm/src/ospath.rs:213–216  ·  view source on GitHub ↗
(path: impl Into<std::ffi::OsString>)

Source from the content-addressed store, hash-verified

211
212impl OsPath {
213 pub fn new_str(path: impl Into<std::ffi::OsString>) -> Self {
214 let path = path.into();
215 Self { path, origin: None }
216 }
217
218 pub(crate) fn from_fspath(fspath: FsPath, vm: &VirtualMachine) -> PyResult<Self> {
219 let path = fspath.as_os_str(vm)?.into_owned();

Callers 15

mainFunction · 0.45
runFunction · 0.45
get_importerFunction · 0.45
get_attrMethod · 0.45
termios_errorFunction · 0.45
_servername_callbackFunction · 0.45
_msg_callbackFunction · 0.45
get_ciphersMethod · 0.45
shared_ciphersMethod · 0.45
convert_openssl_errorFunction · 0.45
set_verify_error_infoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected