SetHasher sets a custom hasher.
(hasher func(Key) uintptr)
| 35 | |
| 36 | // SetHasher sets a custom hasher. |
| 37 | func (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. |
| 42 | func (m *Map[Key, Value]) Len() int { |
no outgoing calls