Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Saturatable ¶
type Saturating ¶
type Saturating[T Saturatable] struct { // contains filtered or unexported fields }
func NewSaturating ¶
func NewSaturating[T Saturatable](max T) *Saturating[T]
func (*Saturating[T]) Add ¶
func (s *Saturating[T]) Add(operand T)
func (*Saturating[T]) Value ¶
func (s *Saturating[T]) Value() T
Click to show internal directories.
Click to hide internal directories.