MCPcopy Index your code
hub / github.com/RustPython/RustPython / encode_basestring

Function encode_basestring

crates/stdlib/src/json.rs:672–674  ·  view source on GitHub ↗
(s: PyUtf8StrRef)

Source from the content-addressed store, hash-verified

670
671 #[pyfunction]
672 fn encode_basestring(s: PyUtf8StrRef) -> String {
673 encode_string(s.as_str(), false)
674 }
675
676 #[pyfunction]
677 fn encode_basestring_ascii(s: PyUtf8StrRef) -> String {

Callers 1

encodeMethod · 0.85

Calls 2

encode_stringFunction · 0.70
as_strMethod · 0.45

Tested by

no test coverage detected