Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1382
impl DoubleEndedIterator for Wtf8CodePoints<'_> {
Callers
1
char_count_general_case
Function · 0.45
Calls
2
count_chars
Function · 0.85
as_wtf8
Method · 0.45
Tested by
no test coverage detected