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

Method key_hash

crates/vm/src/dict_inner.rs:851–853  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

849
850 #[inline(always)]
851 fn key_hash(&self, vm: &VirtualMachine) -> PyResult<HashValue> {
852 self.hash(vm)
853 }
854
855 #[inline(always)]
856 fn key_is(&self, other: &PyObject) -> bool {

Callers 11

insertMethod · 0.80
containsMethod · 0.80
getMethod · 0.80
hint_for_keyMethod · 0.80
get_chainMethod · 0.80
remove_ifMethod · 0.80
delete_or_insertMethod · 0.80
setdefaultMethod · 0.80
setdefault_entryMethod · 0.80
popMethod · 0.80
check_hash_equivalenceFunction · 0.80

Calls 8

hash_usizeFunction · 0.85
as_pystrMethod · 0.80
hash_strMethod · 0.80
hash_bytesMethod · 0.80
hashMethod · 0.45
as_strMethod · 0.45
as_bytesMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected