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

Method to_wide_with_nul

crates/common/src/windows.rs:22–24  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

20 self.as_ref().encode_wide().collect()
21 }
22 fn to_wide_with_nul(&self) -> Vec<u16> {
23 self.as_ref().encode_wide().chain(Some(0)).collect()
24 }
25}
26
27impl ToWideString for OsStr {

Callers 15

attributes_from_dirFunction · 0.80
win32_xstat_slow_implFunction · 0.80
get_kernel32_versionFunction · 0.80
_findfirstfileFunction · 0.80
_test_file_type_by_nameFunction · 0.80
readlinkFunction · 0.80
ConnectRegistryFunction · 0.80
CreateKeyFunction · 0.80
CreateKeyExFunction · 0.80
DeleteKeyFunction · 0.80

Calls 5

collectMethod · 0.80
chainMethod · 0.80
encode_wideMethod · 0.80
SomeClass · 0.50
as_refMethod · 0.45

Tested by

no test coverage detected