github.com/Nigel2392/go-datastructures@v1.1.5/interfaces.go (about) 1 package datastructures 2 3 type Ordered interface { 4 ~int | ~uint | ~string | 5 ~int8 | ~int16 | ~int32 | ~int64 | 6 ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | 7 ~float32 | ~float64 8 } 9 10 type Hashable[T any] interface { 11 Hash() uint64 12 Equalizer[T] 13 } 14 15 type Equalizer[T any] interface { 16 Equals(T) bool 17 } 18 19 type Comparable[T any] interface { 20 Lt(T) bool 21 }