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

Method next

crates/wtf8/src/lib.rs:1362–1365  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1360
1361 #[inline]
1362 fn next(&mut self) -> Option<CodePoint> {
1363 // SAFETY: `self.bytes` has been created from a WTF-8 string
1364 unsafe { next_code_point(&mut self.bytes).map(|c| CodePoint { value: c }) }
1365 }
1366
1367 #[inline]
1368 fn size_hint(&self) -> (usize, Option<usize>) {

Callers 4

joinMethod · 0.45
next_surrogateMethod · 0.45
trim_start_matchesMethod · 0.45
next_code_pointFunction · 0.45

Calls 9

encode_utf16_rawFunction · 0.85
takeFunction · 0.85
next_surrogateMethod · 0.80
next_code_pointFunction · 0.70
SomeClass · 0.50
mapMethod · 0.45
lenMethod · 0.45
as_bytesMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected