Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ len_str
Method
len_str
crates/vm/src/stdlib/_io.rs:2421–2426 ·
view source on GitHub ↗
(s: &Wtf8)
Source
from the content-addressed store, hash-verified
2419
}
2420
2421
fn len_str(s: &Wtf8) -> Self {
2422
Self {
2423
bytes: s.len(),
2424
chars: s.code_points().count(),
2425
}
2426
}
2427
}
2428
2429
impl core::ops::Add for Utf8size {
Callers
nothing calls this directly
Calls
3
code_points
Method · 0.80
len
Method · 0.45
count
Method · 0.45
Tested by
no test coverage detected