Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Range ¶
type Range[T cmp.Ordered] struct { LowerBoundValue RangeBound[T] UpperBoundValue RangeBound[T] }
func NewRange ¶
func NewRange[T cmp.Ordered](lowerBoundValue RangeBound[T], upperBoundValue RangeBound[T]) *Range[T]
func (*Range[T]) GetLowerBoundValue ¶
func (ranger *Range[T]) GetLowerBoundValue() *RangeBound[T]
func (*Range[T]) GetUpperBoundValue ¶
func (ranger *Range[T]) GetUpperBoundValue() *RangeBound[T]
type RangeBound ¶
func Exclusive ¶
func Exclusive[T cmp.Ordered](value T) RangeBound[T]
func Inclusive ¶
func Inclusive[T cmp.Ordered](value T) RangeBound[T]
func NewRangeBound ¶
func NewRangeBound[T cmp.Ordered](boundType BoundType, value T) RangeBound[T]
func Open ¶
func Open[T cmp.Ordered]() RangeBound[T]
func (*RangeBound[T]) SetValue ¶
func (bound *RangeBound[T]) SetValue(value T)
func (*RangeBound[T]) Type ¶
func (bound *RangeBound[T]) Type() BoundType
func (*RangeBound[T]) Value ¶
func (bound *RangeBound[T]) Value() T
type Ranger ¶
type Ranger[T cmp.Ordered] interface { GetLowerBoundValue() *RangeBound[T] GetUpperBoundValue() *RangeBound[T] Contains(T) bool }
Click to show internal directories.
Click to hide internal directories.