MCPcopy 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_benchmarkFunction · 0.80
run_fileFunction · 0.80
run_rustpythonFunction · 0.80
parse_optsFunction · 0.80
parse_folderFunction · 0.80
mainFunction · 0.80
pystr_from_raw_cstrFunction · 0.80
getencodingFunction · 0.80
_servername_callbackFunction · 0.80
getaddrinfoFunction · 0.80
convert_socket_errorFunction · 0.80
lookupMethod · 0.80

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected