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

Method get_entry_checked

crates/vm/src/dict_inner.rs:254–259  ·  view source on GitHub ↗
(&self, idx: EntryIndex, index_index: IndexIndex)

Source from the content-addressed store, hash-verified

252
253 #[inline]
254 fn get_entry_checked(&self, idx: EntryIndex, index_index: IndexIndex) -> Option<&DictEntry<T>> {
255 match self.entries.get(idx) {
256 Some(Some(entry)) if entry.index == index_index => Some(entry),
257 _ => None,
258 }
259 }
260}
261
262type PopInnerResult<T> = ControlFlow<Option<DictEntry<T>>>;

Callers 3

_get_innerMethod · 0.80
setdefaultMethod · 0.80
setdefault_entryMethod · 0.80

Calls 2

SomeClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected