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

Struct hashOption

options.go:25–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25type hashOption[K comparable, V any] struct {
26 hash func(key *K, seed uintptr) uintptr
27}
28
29func (op hashOption[K, V]) apply(m *Map[K, V]) {
30 m.hash = *(*hashFn)(noescape(unsafe.Pointer(&op.hash)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected