func getHashAESENC[K comparable]()

in bench/hash.go [121:130]


func getHashAESENC[K comparable]() freelru.HashKeyCallback[K] {
	var k K
	switch any(k).(type) {
	case string:
		return any((freelru.HashKeyCallback[string])(hashStringAESENC)).(freelru.HashKeyCallback[K])
	case int:
		return any((freelru.HashKeyCallback[int])(hashIntAESENC)).(freelru.HashKeyCallback[K])
	}
	return nil
}