Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaxLenQueue ¶
type MaxLenQueue[T comparable] struct { // contains filtered or unexported fields }
func NewMaxLenQueue ¶
func NewMaxLenQueue[T comparable](maxLen int, nilItemCreator func() T) MaxLenQueue[T]
func (*MaxLenQueue[T]) Dequeue ¶
func (q *MaxLenQueue[T]) Dequeue() T
func (*MaxLenQueue[T]) Enqueue ¶
func (q *MaxLenQueue[T]) Enqueue(item T)
func (*MaxLenQueue[T]) GetAll ¶
func (q *MaxLenQueue[T]) GetAll() []T
func (*MaxLenQueue[T]) Peek ¶
func (q *MaxLenQueue[T]) Peek() T
Click to show internal directories.
Click to hide internal directories.