Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ wide_str
Function
wide_str
crates/vm/src/stdlib/_wmi.rs:275–277 ·
view source on GitHub ↗
(s: &str)
Source
from the content-addressed store, hash-verified
273
}
274
275
fn wide_str(s: &str) -> Vec<u16> {
276
s.encode_utf16().chain(core::iter::once(0)).collect()
277
}
278
279
unsafe fn wcslen(s: *const u16) -> usize {
280
unsafe {
Callers
2
query_thread_impl
Function · 0.85
exec_query
Function · 0.85
Calls
3
once
Function · 0.85
collect
Method · 0.80
chain
Method · 0.80
Tested by
no test coverage detected