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

Method next

crates/compiler-core/src/frozen.rs:75–83  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

73 type Item = (&'a str, FrozenModule<&'a [u8]>);
74
75 fn next(&mut self) -> Option<Self::Item> {
76 if self.remaining > 0 {
77 let entry = read_entry(&mut self.data).unwrap();
78 self.remaining -= 1;
79 Some(entry)
80 } else {
81 None
82 }
83 }
84
85 fn size_hint(&self) -> (usize, Option<usize>) {
86 (self.remaining as usize, Some(self.remaining as usize))

Callers 1

splitMethod · 0.45

Calls 3

read_entryFunction · 0.85
SomeClass · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected