deque

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linked

type Linked[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewLinked

func NewLinked[K comparable, V any](isExp bool) *Linked[K, V]

func (*Linked[K, V]) All added in v2.1.0

func (d *Linked[K, V]) All() iter.Seq[node.Node[K, V]]

func (*Linked[K, V]) Backward added in v2.1.0

func (d *Linked[K, V]) Backward() iter.Seq[node.Node[K, V]]

func (*Linked[K, V]) Clear

func (d *Linked[K, V]) Clear()

func (*Linked[K, V]) Contains

func (d *Linked[K, V]) Contains(n node.Node[K, V]) bool

func (*Linked[K, V]) Delete

func (d *Linked[K, V]) Delete(n node.Node[K, V])

func (*Linked[K, V]) Head

func (d *Linked[K, V]) Head() node.Node[K, V]

func (*Linked[K, V]) IsEmpty

func (d *Linked[K, V]) IsEmpty() bool

func (*Linked[K, V]) Len

func (d *Linked[K, V]) Len() int

func (*Linked[K, V]) MoveToBack

func (d *Linked[K, V]) MoveToBack(n node.Node[K, V])

func (*Linked[K, V]) MoveToFront

func (d *Linked[K, V]) MoveToFront(n node.Node[K, V])

func (*Linked[K, V]) NotContains

func (d *Linked[K, V]) NotContains(n node.Node[K, V]) bool

func (*Linked[K, V]) PopFront

func (d *Linked[K, V]) PopFront() node.Node[K, V]

func (*Linked[K, V]) PushBack

func (d *Linked[K, V]) PushBack(n node.Node[K, V])

func (*Linked[K, V]) PushFront

func (d *Linked[K, V]) PushFront(n node.Node[K, V])

func (*Linked[K, V]) Tail

func (d *Linked[K, V]) Tail() node.Node[K, V]

func (*Linked[K, V]) UpdateNode

func (d *Linked[K, V]) UpdateNode(n, old node.Node[K, V])

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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