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

Method hash_str

crates/common/src/hash.rs:79–81  ·  view source on GitHub ↗
(&self, value: &str)

Source from the content-addressed store, hash-verified

77 }
78
79 pub fn hash_str(&self, value: &str) -> PyHash {
80 self.hash_bytes(value.as_bytes())
81 }
82}
83
84#[inline]

Callers 3

generate_hashMethod · 0.80
key_hashMethod · 0.80
newMethod · 0.80

Calls 2

hash_bytesMethod · 0.80
as_bytesMethod · 0.45

Tested by

no test coverage detected