synclist

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element[T any] struct {

	// The value stored with this element.
	Value T
	// contains filtered or unexported fields
}

func (*Element[T]) Next

func (e *Element[T]) Next() *Element[T]

func (*Element[T]) Prev

func (e *Element[T]) Prev() *Element[T]

func (*Element[T]) SetValue

func (e *Element[T]) SetValue(t T) *Element[T]

type SyncList

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

func New

func New[T any]() *SyncList[T]

func (*SyncList[T]) Back

func (s *SyncList[T]) Back() *Element[T]

func (*SyncList[T]) Front

func (s *SyncList[T]) Front() *Element[T]

func (*SyncList[T]) Len

func (s *SyncList[T]) Len() int

func (*SyncList[T]) MoveToFront

func (s *SyncList[T]) MoveToFront(e *Element[T])

func (*SyncList[T]) PushBack

func (s *SyncList[T]) PushBack(v T) *Element[T]

func (*SyncList[T]) PushFront

func (s *SyncList[T]) PushFront(v T) *Element[T]

func (*SyncList[T]) Remove

func (s *SyncList[T]) Remove(e *Element[T]) T

Jump to

Keyboard shortcuts

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