Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ from
Method
from
crates/vm/src/builtins/str.rs:144–146 ·
view source on GitHub ↗
(s: &'a AsciiStr)
Source
from the content-addressed store, hash-verified
142
143
impl<
'a> From<&'
a AsciiStr> for PyStr {
144
fn from(s: &'a AsciiStr) -> Self {
145
s.to_owned().into()
146
}
147
}
148
149
impl From<AsciiString> for PyStr {
Callers
nothing calls this directly
Calls
5
new
Function · 0.85
into_box
Method · 0.80
into_owned
Method · 0.80
into_wtf8
Method · 0.80
to_owned
Method · 0.45
Tested by
no test coverage detected