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

Method next

crates/vm/src/builtins/dict.rs:835–839  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

833 type Item = (PyObjectRef, PyObjectRef);
834
835 fn next(&mut self) -> Option<Self::Item> {
836 let (position, key, value) = self.dict.entries.next_entry(self.position)?;
837 self.position = position;
838 Some((key, value))
839 }
840
841 fn size_hint(&self) -> (usize, Option<usize>) {
842 let l = self.len();

Callers 1

merge_objectMethod · 0.45

Calls 2

next_entryMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected