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

Method len_from_entry_index

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

Source from the content-addressed store, hash-verified

614 }
615
616 pub fn len_from_entry_index(&self, position: EntryIndex) -> usize {
617 self.read().entries.len().saturating_sub(position)
618 }
619
620 pub fn has_changed_size(&self, old: &DictSize) -> bool {
621 let current = self.read().size();

Callers 1

lenMethod · 0.80

Calls 2

lenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected