Documentation
¶
Index ¶
- func Conform[A any, CA Class[A]](c CA) func(t *testing.T, x, y, z A)
- type Class
- type CompareFn
- type EQ
- type GT
- type LT
- type LTEFn
- type Ordering
- type Type
- func (t Type[A]) Compare(x, y A) Ordering
- func (t Type[A]) Equal(x, y A) bool
- func (t Type[A]) GT(x, y A) bool
- func (t Type[A]) GTE(x, y A) bool
- func (t Type[A]) LT(x, y A) bool
- func (t Type[A]) LTE(x, y A) bool
- func (t Type[A]) Max(x, y A) A
- func (t Type[A]) Min(x, y A) A
- func (t Type[A]) NE(x, y A) bool
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ordering ¶
type Ordering interface {
// contains filtered or unexported methods
}
func Ordered ¶
func Ordered[A constraints.Ordered](x, y A) Ordering
Ordered implements CompareFn for natively ordered types.
type Type ¶
type Type[A any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.