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

Method len

crates/stdlib/src/json/machinery.rs:126–131  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

124}
125impl StrOrChar<'_> {
126 const fn len(&self) -> usize {
127 match self {
128 StrOrChar::Str(s) => s.len(),
129 StrOrChar::Char(c) => c.len_wtf8(),
130 }
131 }
132}
133/// Scan a JSON string starting right after the opening quote.
134///

Callers 15

cert_to_dictFunction · 0.45
format_ip_addressFunction · 0.45
format_serial_numberFunction · 0.45
load_from_bytes_exMethod · 0.45
verify_ip_addressFunction · 0.45
buildMethod · 0.45
send_all_bytesFunction · 0.45
recv_one_tls_recordFunction · 0.45
ssl_readFunction · 0.45
ssl_writeFunction · 0.45
ssl_read_tls_recordsFunction · 0.45

Calls 1

len_wtf8Method · 0.80

Tested by

no test coverage detected