Documentation
¶
Index ¶
- type Element
- func (e Element[T]) Backward() iter.Seq[Element[T]]
- func (e Element[T]) Forward() iter.Seq[Element[T]]
- func (e Element[T]) Get() T
- func (e Element[T]) Next() Element[T]
- func (e Element[T]) Ok() bool
- func (e Element[T]) Prev() Element[T]
- func (e Element[T]) Set(t T)
- func (e Element[T]) Unwrap() *list.Element
- func (e Element[T]) ValuesBackward() iter.Seq[T]
- func (e Element[T]) ValuesForward() iter.Seq[T]
- type List
- func (l List[T]) Back() Element[T]
- func (l List[T]) CloneFunc(cloneT func(T) T) List[T]
- func (l List[T]) Front() Element[T]
- func (l List[T]) Init() List[T]
- func (l List[T]) InsertAfter(v T, mark Element[T]) Element[T]
- func (l List[T]) InsertBefore(v T, mark Element[T]) Element[T]
- func (l List[T]) Len() int
- func (l List[T]) MoveAfter(e Element[T], mark Element[T])
- func (l List[T]) MoveBefore(e Element[T], mark Element[T])
- func (l List[T]) MoveToBack(e Element[T])
- func (l List[T]) MoveToFront(e Element[T])
- func (l List[T]) PushBack(v T) Element[T]
- func (l List[T]) PushBackList(other List[T])
- func (l List[T]) PushFront(v T) Element[T]
- func (l List[T]) PushFrontList(other List[T])
- func (l List[T]) Remove(e Element[T]) T
- func (l List[T]) Unwrap() *list.List
- type Ring
- func (r Ring[T]) Backward() iter.Seq[Ring[T]]
- func (r Ring[T]) CloneFunc(cloneT func(T) T) Ring[T]
- func (r Ring[T]) Do(f func(T))
- func (r Ring[T]) Forward() iter.Seq[Ring[T]]
- func (l Ring[T]) Get() T
- func (r Ring[T]) Len() int
- func (r Ring[T]) Link(s Ring[T]) Ring[T]
- func (r Ring[T]) Move(n int) Ring[T]
- func (r Ring[T]) Next() Ring[T]
- func (r Ring[T]) Prev() Ring[T]
- func (l Ring[T]) Set(t T)
- func (r Ring[T]) Unlink(n int) Ring[T]
- func (l Ring[T]) Unwrap() *ring.Ring
- func (r Ring[T]) ValuesBackward() iter.Seq[T]
- func (r Ring[T]) ValuesForward() iter.Seq[T]
- type SliceHeap
- type SliceInterface
- type SliceInterfaceHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element[T any] struct { // contains filtered or unexported fields }
func (Element[T]) ValuesBackward ¶
func (Element[T]) ValuesForward ¶
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
func (List[T]) InsertAfter ¶
func (List[T]) InsertBefore ¶
func (List[T]) MoveBefore ¶
func (List[T]) MoveToBack ¶
func (List[T]) MoveToFront ¶
func (List[T]) PushBackList ¶
func (List[T]) PushFrontList ¶
type Ring ¶
type Ring[T any] struct { // contains filtered or unexported fields }
func (Ring[T]) ValuesBackward ¶
func (Ring[T]) ValuesForward ¶
type SliceHeap ¶
type SliceHeap[T any] struct { Interface SliceInterface[T] }
type SliceInterface ¶
type SliceInterface[T any] struct { Cmp func(i, j T) int Hooks SliceInterfaceHooks[T] Slice []T }
func (SliceInterface[T]) CloneFunc ¶
func (s SliceInterface[T]) CloneFunc(cloneT func(T) T) SliceInterface[T]
func (*SliceInterface[T]) Len ¶
func (s *SliceInterface[T]) Len() int
func (*SliceInterface[T]) Pop ¶
func (s *SliceInterface[T]) Pop() any
func (*SliceInterface[T]) Push ¶
func (s *SliceInterface[T]) Push(x any)
func (*SliceInterface[T]) Swap ¶
func (s *SliceInterface[T]) Swap(i int, j int)
type SliceInterfaceHooks ¶
type SliceInterfaceHooks[T any] struct { Pop func(iface *SliceInterface[T], beingPopped *T) Push func(iface *SliceInterface[T], beingPushed *T) Swap func(iface *SliceInterface[T], i, j int) }
Click to show internal directories.
Click to hide internal directories.