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

Method hash_value

crates/common/src/hash.rs:54–56  ·  view source on GitHub ↗
(&self, data: &T)

Source from the content-addressed store, hash-verified

52
53impl HashSecret {
54 pub fn hash_value<T: Hash + ?Sized>(&self, data: &T) -> PyHash {
55 fix_sentinel(mod_int(self.hash_one(data) as _))
56 }
57
58 pub fn hash_iter<'a, T: 'a, I, F, E>(&self, iter: I, hash_func: F) -> Result<PyHash, E>
59 where

Callers 1

hash_bytesMethod · 0.80

Calls 2

fix_sentinelFunction · 0.85
mod_intFunction · 0.85

Tested by

no test coverage detected