Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ to_str
Method
to_str
crates/vm/src/builtins/str.rs:478–480 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
476
}
477
478
pub fn to_str(&self) -> Option<&str> {
479
self.data.as_str()
480
}
481
482
/// Returns `&str`
483
///
Callers
15
criterion_benchmark
Function · 0.80
run_file
Function · 0.80
run_rustpython
Function · 0.80
parse_opts
Function · 0.80
parse_folder
Function · 0.80
main
Function · 0.80
pystr_from_raw_cstr
Function · 0.80
getencoding
Function · 0.80
_servername_callback
Function · 0.80
getaddrinfo
Function · 0.80
convert_socket_error
Function · 0.80
lookup
Method · 0.80
Calls
1
as_str
Method · 0.45
Tested by
no test coverage detected