MCPcopy 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)]
150pub const fn fix_sentinel(x: PyHash) -> PyHash {
151 if x == SENTINEL { -2 } else { x }
152}
153
154#[inline]
155pub const fn mod_int(value: i64) -> PyHash {

Callers 10

hash_valueMethod · 0.85
hash_iterMethod · 0.85
hash_floatFunction · 0.85
hash_bigintFunction · 0.85
hash_usizeFunction · 0.85
hash_object_idFunction · 0.85
hashMethod · 0.85
hashMethod · 0.85
hashMethod · 0.85
hashMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected