MCPcopy Create free account
hub / github.com/cockroachdb/swiss / WithHash

Function WithHash

options.go:34–36  ·  view source on GitHub ↗

WithHash is an option to specify the hash function to use for a Map[K,V].

(hash func(key *K, seed uintptr) uintptr)

Source from the content-addressed store, hash-verified

32
33// WithHash is an option to specify the hash function to use for a Map[K,V].
34func WithHash[K comparable, V any](hash func(key *K, seed uintptr) uintptr) Option[K, V] {
35 return hashOption[K, V]{hash}
36}
37
38type maxBucketCapacityOption[K comparable, V any] struct {
39 maxBucketCapacity uint32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…