Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
30
impl 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
new
Method · 0.45
Calls
3
chars
Method · 0.80
code_points
Method · 0.80
len
Method · 0.45
Tested by
no test coverage detected