Documentation ¶
Index ¶
- type Vector
- func (vec *Vector[T]) Capacity() int
- func (vec *Vector[T]) Empty() bool
- func (vec *Vector[T]) ForEach(f func(T))
- func (vec *Vector[T]) Push(x T)
- func (vec *Vector[T]) Reserve(additional int)
- func (vec *Vector[T]) ShrinkToFit()
- func (vec *Vector[T]) Size() int
- func (vec *Vector[T]) ToSlice() []T
- func (vec *Vector[T]) TryPop() option.Option[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vector ¶
type Vector[T any] struct { // contains filtered or unexported fields }
func FromValues ¶
func WithCapacity ¶
func (*Vector[T]) ShrinkToFit ¶
func (vec *Vector[T]) ShrinkToFit()
Click to show internal directories.
Click to hide internal directories.