Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ fix_sentinel
Function
fix_sentinel
crates/common/src/hash.rs:150–152 ·
view source on GitHub ↗
(x: PyHash)
Source
from the content-addressed store, hash-verified
148
149
#[inline(always)]
150
pub const fn fix_sentinel(x: PyHash) -> PyHash {
151
if x == SENTINEL { -2 } else { x }
152
}
153
154
#[inline]
155
pub const fn mod_int(value: i64) -> PyHash {
Callers
10
hash_value
Method · 0.85
hash_iter
Method · 0.85
hash_float
Function · 0.85
hash_bigint
Function · 0.85
hash_usize
Function · 0.85
hash_object_id
Function · 0.85
hash
Method · 0.85
hash
Method · 0.85
hash
Method · 0.85
hash
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected