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

Function hash_usize

crates/common/src/hash.rs:145–147  ·  view source on GitHub ↗
(data: usize)

Source from the content-addressed store, hash-verified

143
144#[inline]
145pub const fn hash_usize(data: usize) -> PyHash {
146 fix_sentinel(mod_int(data as i64))
147}
148
149#[inline(always)]
150pub const fn fix_sentinel(x: PyHash) -> PyHash {

Callers 1

key_hashMethod · 0.85

Calls 2

fix_sentinelFunction · 0.85
mod_intFunction · 0.85

Tested by

no test coverage detected