Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ size_hint
Method
size_hint
crates/wtf8/src/lib.rs:1368–1371 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
1366
1367
#[inline]
1368
fn size_hint(&self) -> (usize, Option<usize>) {
1369
let len = self.bytes.len();
1370
(len.saturating_add(3) / 4, Some(len))
1371
}
1372
1373
fn last(mut self) -> Option<Self::Item> {
1374
self.next_back()
Callers
1
extend
Method · 0.45
Calls
2
Some
Class · 0.50
len
Method · 0.45
Tested by
no test coverage detected