Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ hash
Method
hash
publication/code/chapter06/hashmap.rs:60–62 ·
view source on GitHub ↗
(&self, key: usize)
Source
from the content-addressed store, hash-verified
58
}
59
60
fn hash(&self, key: usize) -> usize {
61
key % self.cap
62
}
63
64
fn rehash(&self, pos: usize) -> usize {
65
(pos + 1) % self.cap
Callers
6
insert
Method · 0.45
remove
Method · 0.45
get_pos
Method · 0.45
hash
Function · 0.45
make_hash
Method · 0.45
get_hash
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected