Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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]
145
pub const fn hash_usize(data: usize) -> PyHash {
146
fix_sentinel(mod_int(data as i64))
147
}
148
149
#[inline(always)]
150
pub const fn fix_sentinel(x: PyHash) -> PyHash {
Callers
1
key_hash
Method · 0.85
Calls
2
fix_sentinel
Function · 0.85
mod_int
Function · 0.85
Tested by
no test coverage detected