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

Method to_wide

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

Source from the content-addressed store, hash-verified

17 T: AsRef<OsStr>,
18{
19 fn to_wide(&self) -> Vec<u16> {
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 }

Callers 6

_path_splitrootFunction · 0.80
LCMapStringExFunction · 0.80
mbcs_encodeFunction · 0.80
oem_encodeFunction · 0.80
code_page_encodeFunction · 0.80

Calls 3

collectMethod · 0.80
encode_wideMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected