Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ into_vec
Method
into_vec
crates/common/src/os.rs:136–142 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
134
}
135
136
fn into_vec(self) -> Vec<u8> {
137
// WASI strings are guaranteed to be UTF-8
138
self.to_str()
139
.expect(
"wasip2 strings are UTF-8"
)
140
.as_bytes()
141
.to_vec()
142
}
143
}
144
145
mod sealed {
Callers
nothing calls this directly
Calls
3
to_vec
Method · 0.80
to_str
Method · 0.80
as_bytes
Method · 0.45
Tested by
no test coverage detected