Documentation ¶
Index ¶
- type Element
- type List
- type Set
- type SyncList
- func (s *SyncList[T]) Back() *Element[T]
- func (s *SyncList[T]) Front() *Element[T]
- func (s *SyncList[T]) Len() int
- func (s *SyncList[T]) MoveToFront(e *Element[T])
- func (s *SyncList[T]) PushBack(v T) *Element[T]
- func (s *SyncList[T]) PushFront(v T) *Element[T]
- func (s *SyncList[T]) Remove(e *Element[T]) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
func (*List[T]) MoveToFront ¶
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[T comparable]() *Set[T]
type SyncList ¶
type SyncList[T any] struct { // contains filtered or unexported fields }
func NewSyncList ¶
func (*SyncList[T]) MoveToFront ¶
Click to show internal directories.
Click to hide internal directories.