Versions in this module Expand all Collapse all v0 v0.1.0 Dec 6, 2025 Changes in this version + type Buffer struct + func New[T any](capacity int) *Buffer[T] + func (b *Buffer[T]) All() iter.Seq2[int, T] + func (b *Buffer[T]) At(i int) (T, bool) + func (b *Buffer[T]) Back() (T, bool) + func (b *Buffer[T]) Backward() iter.Seq2[int, T] + func (b *Buffer[T]) Cap() int + func (b *Buffer[T]) Clear() + func (b *Buffer[T]) Clone() *Buffer[T] + func (b *Buffer[T]) Do(f func(T) bool) + func (b *Buffer[T]) Empty() bool + func (b *Buffer[T]) Front() (T, bool) + func (b *Buffer[T]) Full() bool + func (b *Buffer[T]) Len() int + func (b *Buffer[T]) PopBack() (T, bool) + func (b *Buffer[T]) PopFront() (T, bool) + func (b *Buffer[T]) PushBack(v T) bool + func (b *Buffer[T]) PushFront(v T) bool + func (b *Buffer[T]) Resize(n int) + func (b *Buffer[T]) Set(i int, v T) bool + func (b *Buffer[T]) ToSlice() []T + func (b *Buffer[T]) Values() iter.Seq[T]