MCPcopy 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
143impl<'a> From<&'a AsciiStr> for PyStr {
144 fn from(s: &'a AsciiStr) -> Self {
145 s.to_owned().into()
146 }
147}
148
149impl From<AsciiString> for PyStr {

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
into_boxMethod · 0.80
into_ownedMethod · 0.80
into_wtf8Method · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected