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

Method contains_key

crates/vm/src/builtins/dict.rs:244–246  ·  view source on GitHub ↗
(&self, key: &K, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

242 }
243
244 pub fn contains_key<K: DictKey + ?Sized>(&self, key: &K, vm: &VirtualMachine) -> bool {
245 self.entries.contains(vm, key).unwrap()
246 }
247
248 pub fn size(&self) -> dict_inner::DictSize {
249 self.entries.size()

Callers 15

initMethod · 0.80
_getMethod · 0.80
validMethod · 0.80
add_operatorsFunction · 0.80
with_builtinsMethod · 0.80
execute_instructionMethod · 0.80
setup_annotationsMethod · 0.80
extend_pyclassMethod · 0.80
update_subclassesMethod · 0.80
update_one_slotMethod · 0.80
is_builtinFunction · 0.80
make_scopeMethod · 0.80

Calls 2

unwrapMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected