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

Method count

crates/wtf8/src/lib.rs:1377–1379  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1375 }
1376
1377 fn count(self) -> usize {
1378 core_str_count::count_chars(self.as_wtf8())
1379 }
1380}
1381
1382impl DoubleEndedIterator for Wtf8CodePoints<'_> {

Callers 1

char_count_general_caseFunction · 0.45

Calls 2

count_charsFunction · 0.85
as_wtf8Method · 0.45

Tested by

no test coverage detected