MCPcopy
hub / github.com/cornelk/hashmap / SetHasher

Method SetHasher

hashmap.go:37–39  ·  view source on GitHub ↗

SetHasher sets a custom hasher.

(hasher func(Key) uintptr)

Source from the content-addressed store, hash-verified

35
36// SetHasher sets a custom hasher.
37func (m *Map[Key, Value]) SetHasher(hasher func(Key) uintptr) {
38 m.hasher = hasher
39}
40
41// Len returns the number of elements within the map.
42func (m *Map[Key, Value]) Len() int {

Callers 1

TestHashCollisionFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestHashCollisionFunction · 0.64