Documentation
¶
Index ¶
- type RingQueue
- func (r *RingQueue[T]) IsFull() bool
- func (r *RingQueue[T]) Peek() (T, error)
- func (r *RingQueue[T]) PeekIdx(idx int) (T, error)
- func (r *RingQueue[T]) PeekSlice(startIdx int) ([]T, error)
- func (r *RingQueue[T]) Pop() (T, error)
- func (r *RingQueue[T]) Push(elem T) error
- func (r *RingQueue[T]) PushSafe(elem T) error
- func (r *RingQueue[T]) Scan(fn func(elem T, idx int) bool)
- func (r *RingQueue[T]) Size() int
- func (r *RingQueue[T]) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingQueue ¶
type RingQueue[T any] struct { // contains filtered or unexported fields }
func NewRingQueue ¶
Click to show internal directories.
Click to hide internal directories.