Documentation ¶
Index ¶
- Variables
- type AsyncDequeue
- func (st *AsyncDequeue[T]) Back() (T, error)
- func (st *AsyncDequeue[T]) Empty() bool
- func (st *AsyncDequeue[T]) Front() (T, error)
- func (st *AsyncDequeue[T]) MustPopBack() T
- func (st *AsyncDequeue[T]) MustPopFront() T
- func (st *AsyncDequeue[T]) PopBack() (T, error)
- func (st *AsyncDequeue[T]) PopFront() (T, error)
- func (st *AsyncDequeue[T]) PushBack(value T)
- func (st *AsyncDequeue[T]) PushFront(value T)
- type AsyncQueue
- type AsyncStack
- type Dequeue
- func (st *Dequeue[T]) Back() (T, error)
- func (st *Dequeue[T]) Empty() bool
- func (st *Dequeue[T]) Front() (T, error)
- func (st *Dequeue[T]) MustPopBack() T
- func (st *Dequeue[T]) MustPopFront() T
- func (st *Dequeue[T]) PopBack() (T, error)
- func (st *Dequeue[T]) PopFront() (T, error)
- func (st *Dequeue[T]) PushBack(value T)
- func (st *Dequeue[T]) PushFront(value T)
- type Queue
- type Stack
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorEmptyDequeue = errors.New("empty dequeue")
View Source
var ErrorEmptyQueue = errors.New("empty queue")
View Source
var ErrorEmptyStack = errors.New("empty Stack")
Functions ¶
This section is empty.
Types ¶
type AsyncDequeue ¶
type AsyncDequeue[T any] struct { // contains filtered or unexported fields }
func NewAsyncDequeue ¶
func NewAsyncDequeue[T any]() *AsyncDequeue[T]
func (*AsyncDequeue[T]) Back ¶
func (st *AsyncDequeue[T]) Back() (T, error)
func (*AsyncDequeue[T]) Empty ¶
func (st *AsyncDequeue[T]) Empty() bool
func (*AsyncDequeue[T]) Front ¶
func (st *AsyncDequeue[T]) Front() (T, error)
func (*AsyncDequeue[T]) MustPopBack ¶
func (st *AsyncDequeue[T]) MustPopBack() T
func (*AsyncDequeue[T]) MustPopFront ¶
func (st *AsyncDequeue[T]) MustPopFront() T
func (*AsyncDequeue[T]) PopBack ¶
func (st *AsyncDequeue[T]) PopBack() (T, error)
func (*AsyncDequeue[T]) PopFront ¶
func (st *AsyncDequeue[T]) PopFront() (T, error)
func (*AsyncDequeue[T]) PushBack ¶
func (st *AsyncDequeue[T]) PushBack(value T)
func (*AsyncDequeue[T]) PushFront ¶
func (st *AsyncDequeue[T]) PushFront(value T)
type AsyncQueue ¶
type AsyncQueue[T any] struct { // contains filtered or unexported fields }
func NewAsyncQueue ¶
func NewAsyncQueue[T any]() *AsyncQueue[T]
func (*AsyncQueue[T]) Empty ¶
func (st *AsyncQueue[T]) Empty() bool
func (*AsyncQueue[T]) Front ¶
func (st *AsyncQueue[T]) Front() (T, error)
func (*AsyncQueue[T]) Pop ¶
func (st *AsyncQueue[T]) Pop() (T, error)
func (*AsyncQueue[T]) Push ¶
func (st *AsyncQueue[T]) Push(value T)
type AsyncStack ¶
type AsyncStack[T any] struct { // contains filtered or unexported fields }
func NewAsyncStack ¶
func NewAsyncStack[T any]() *AsyncStack[T]
func (*AsyncStack[T]) Empty ¶
func (st *AsyncStack[T]) Empty() bool
func (*AsyncStack[T]) Pop ¶
func (st *AsyncStack[T]) Pop() (T, error)
func (*AsyncStack[T]) Push ¶
func (st *AsyncStack[T]) Push(value T)
func (*AsyncStack[T]) Top ¶
func (st *AsyncStack[T]) Top() (T, error)
type Dequeue ¶
type Dequeue[T any] []T
func NewDequeue ¶
func (*Dequeue[T]) MustPopBack ¶
func (st *Dequeue[T]) MustPopBack() T
func (*Dequeue[T]) MustPopFront ¶
func (st *Dequeue[T]) MustPopFront() T
Click to show internal directories.
Click to hide internal directories.