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

Method len

crates/vm/src/builtins/str.rs:1941–1943  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1939 }
1940
1941 fn len(&self) -> usize {
1942 self.char_len()
1943 }
1944}
1945
1946impl AsRef<str> for PyRefExact<PyStr> {

Callers 15

slot_newMethod · 0.45
byte_lenMethod · 0.45
capitalizeMethod · 0.45
endswithMethod · 0.45
startswithMethod · 0.45
titleMethod · 0.45
swapcaseMethod · 0.45
splitlinesMethod · 0.45
_findMethod · 0.45
countMethod · 0.45
_padMethod · 0.45
maketransMethod · 0.45

Calls 1

char_lenMethod · 0.45

Tested by

no test coverage detected