Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benbjohnson/immutable
/ Hash
Method
Hash
immutable.go:2234–2234 ·
view source on GitHub ↗
Computes a hash for key.
(key K)
Source
from the content-addressed store, hash-verified
2232
type
Hasher[K any]
interface
{
2233
// Computes a hash for key.
2234
Hash(key K) uint32
2235
2236
// Returns true if a and b are equal.
2237
Equal(a, b K) bool
Callers
7
testNewHasher
Function · 0.95
Get
Method · 0.65
set
Method · 0.65
delete
Method · 0.65
TestInternal_mapNode_Overwrite
Function · 0.65
TestInternal_mapArrayNode
Function · 0.65
TestInternal_mapValueNode
Function · 0.65
Calls
no outgoing calls
Tested by
4
testNewHasher
Function · 0.76
TestInternal_mapNode_Overwrite
Function · 0.52
TestInternal_mapArrayNode
Function · 0.52
TestInternal_mapValueNode
Function · 0.52