MCPcopy 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

2232type 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

testNewHasherFunction · 0.95
GetMethod · 0.65
setMethod · 0.65
deleteMethod · 0.65

Calls

no outgoing calls

Tested by 4

testNewHasherFunction · 0.76