types

package
v0.0.0-...-3c9b5b7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cap

func Cap[T constraints.Ordered](v USize) sliceOption[T]

func Items

func Items[T constraints.Ordered](v ...T) sliceOption[T]

func Len

func Len[T constraints.Ordered](v USize) sliceOption[T]

Types

type Size

type Size int

func (Size) Value

func (s Size) Value() int

type Slice

type Slice[T constraints.Ordered] struct {
	// contains filtered or unexported fields
}

func Vector

func Vector[T constraints.Ordered](opts ...sliceOption[T]) *Slice[T]

func (*Slice[T]) Add

func (s *Slice[T]) Add(v ...T) *Slice[T]

func (Slice[T]) At

func (s Slice[T]) At(i USize) T

func (*Slice[T]) Clear

func (s *Slice[T]) Clear() *Slice[T]

func (Slice[T]) Copy

func (s Slice[T]) Copy() *Slice[T]

func (Slice[T]) Len

func (s Slice[T]) Len() USize

func (*Slice[T]) Remove

func (s *Slice[T]) Remove(i USize) *Slice[T]

func (*Slice[T]) Set

func (s *Slice[T]) Set(i USize, v T) *Slice[T]

func (*Slice[T]) Slice

func (s *Slice[T]) Slice() []T

func (*Slice[T]) Sort

func (s *Slice[T]) Sort() *Slice[T]

func (*Slice[T]) Swap

func (s *Slice[T]) Swap(i, j USize)

type String

type String string

func (String) Bytes

func (s String) Bytes() []byte

func (String) JSON

func (s String) JSON() ([]byte, error)

func (String) Size

func (s String) Size() USize

func (String) Value

func (s String) Value() string

type USize

type USize uint

func (USize) Value

func (s USize) Value() uint

Jump to

Keyboard shortcuts

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