listqueue

package
v1.12.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListQueue

type ListQueue[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](size int) *ListQueue[T]

func (*ListQueue[T]) Pop

func (q *ListQueue[T]) Pop() (T, bool)

func (*ListQueue[T]) Push

func (q *ListQueue[T]) Push(data T)

type Node

type Node[T any] struct {
	// contains filtered or unexported fields
}

func (*Node[T]) Next

func (n *Node[T]) Next() *Node[T]

func (*Node[T]) Previous

func (n *Node[T]) Previous() *Node[T]

func (*Node[T]) Set

func (n *Node[T]) Set(value T)

func (*Node[T]) Value

func (n *Node[T]) Value() T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL