WithHash is an option to specify the hash function to use for a Map[K,V].
(hash func(key *K, seed uintptr) uintptr)
| 32 | |
| 33 | // WithHash is an option to specify the hash function to use for a Map[K,V]. |
| 34 | func WithHash[K comparable, V any](hash func(key *K, seed uintptr) uintptr) Option[K, V] { |
| 35 | return hashOption[K, V]{hash} |
| 36 | } |
| 37 | |
| 38 | type maxBucketCapacityOption[K comparable, V any] struct { |
| 39 | maxBucketCapacity uint32 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…