queue

package
v0.0.0-...-5d0c2b2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Q

type Q[T any] []*item[T]

func (Q[T]) Len

func (q Q[T]) Len() int

Len implements heap.Interface.

func (Q[T]) Less

func (q Q[T]) Less(i, j int) bool

Less implements heap.Interface.

func (*Q[T]) Pop

func (q *Q[T]) Pop() any

Pop implements heap.Interface, do not use this method directly.

func (*Q[T]) PopItem

func (q *Q[T]) PopItem() T

func (*Q[T]) Push

func (q *Q[T]) Push(x any)

Push implements heap.Interface, do not use this method directly.

func (*Q[T]) PushItem

func (q *Q[T]) PushItem(priority int, value T)

func (Q[T]) Swap

func (q Q[T]) Swap(i, j int)

Swap implements heap.Interface, do not use this method directly.

Jump to

Keyboard shortcuts

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