Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundExcluded ¶
type BoundExcluded[T constraints.Ordered] struct { Value T }
type BoundIncluded ¶
type BoundIncluded[T constraints.Ordered] struct { Value T }
type BoundUnbounded ¶
type BoundUnbounded struct{}
type Inclusive ¶
type Inclusive[T constraints.Ordered] struct { Start, End T }
func NewInclusive ¶
func NewInclusive[T constraints.Ordered](start, end T) Inclusive[T]
func (Inclusive[T]) EndBound ¶
func (ir Inclusive[T]) EndBound() BoundIncluded[T]
func (Inclusive[T]) StartBound ¶
func (ir Inclusive[T]) StartBound() BoundIncluded[T]
type Range ¶
type Range[T constraints.Ordered] struct { Start, End T }
func New ¶
func New[T constraints.Ordered](start, end T) Range[T]
func (Range[T]) EndBound ¶
func (r Range[T]) EndBound() BoundExcluded[T]
func (Range[T]) StartBound ¶
func (r Range[T]) StartBound() BoundIncluded[T]
Click to show internal directories.
Click to hide internal directories.