Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bounds ¶
type Bounds[T cmp.Ordered] struct { Lower, Upper T // Open signifies whether the corresponding bound is open or not Open [2]bool }
Bounds represents the bounds of an Ordered value.
func NewBounds ¶
func NewBounds[T cmp.Ordered](lower, upper T, lowerOpen, upperOpen bool) (bounds Bounds[T], e error)
NewBounds returns a Bounds object, returning a non-nil error if the bounds are not valid.
type InvalidBoundsError ¶
func (InvalidBoundsError[T]) Error ¶
func (e InvalidBoundsError[T]) Error() string
Click to show internal directories.
Click to hide internal directories.