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

Method count

crates/sre_engine/src/string.rs:32–34  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

30impl StrDrive for &[u8] {
31 #[inline]
32 fn count(&self) -> usize {
33 self.len()
34 }
35
36 #[inline]
37 fn create_cursor(&self, n: usize) -> StringCursor {

Callers 1

newMethod · 0.45

Calls 3

charsMethod · 0.80
code_pointsMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected