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

Method hash

crates/vm/src/bytes_inner.rs:311–313  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

309 }
310
311 pub fn hash(&self, vm: &VirtualMachine) -> hash::PyHash {
312 vm.state.hash_secret.hash_bytes(&self.elements)
313 }
314
315 pub fn add(&self, other: &[u8]) -> Vec<u8> {
316 self.elements.py_add(other)

Callers 2

hash_iterFunction · 0.45
key_hashMethod · 0.45

Calls 1

hash_bytesMethod · 0.80

Tested by

no test coverage detected