Documentation ¶
Index ¶
- type Element
- 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 Element ¶
type Element[T any] struct { // The value stored with this element. Value T // contains filtered or unexported fields }
type SyncList ¶
type SyncList[T any] struct { // contains filtered or unexported fields }
func (*SyncList[T]) MoveToFront ¶
Click to show internal directories.
Click to hide internal directories.