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

Method next_entry

crates/vm/src/dict_inner.rs:594–603  ·  view source on GitHub ↗
(&self, mut position: EntryIndex)

Source from the content-addressed store, hash-verified

592 }
593
594 pub fn next_entry(&self, mut position: EntryIndex) -> Option<(usize, PyObjectRef, T)> {
595 let inner = self.read();
596 loop {
597 let entry = inner.entries.get(position)?;
598 position += 1;
599 if let Some(entry) = entry {
600 break Some((position, entry.key.clone(), entry.value.clone()));
601 }
602 }
603 }
604
605 pub fn prev_entry(&self, mut position: EntryIndex) -> Option<(usize, PyObjectRef, T)> {
606 let inner = self.read();

Callers 2

nextMethod · 0.80
nextMethod · 0.80

Calls 4

SomeClass · 0.50
readMethod · 0.45
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected