set

package
v0.0.0-...-0394936 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rigid

type Rigid[T comparable, S constraints.Unsigned] struct {
	slice.Rigid[T, S]
	// contains filtered or unexported fields
}

func NewRigid

func NewRigid[T comparable, S constraints.Unsigned](size S) *Rigid[T, S]

func NewSafeRigid

func NewSafeRigid[T comparable, S constraints.Unsigned](size S) *Rigid[T, S]

func (*Rigid[T, S]) Add

func (r *Rigid[T, S]) Add(x ...T)

type Set

type Set[T comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T comparable](data ...T) *Set[T]

func NewSafe

func NewSafe[T comparable](data ...T) *Set[T]

func (*Set[T]) Add

func (set *Set[T]) Add(values ...T)

func (*Set[T]) Contains

func (set *Set[T]) Contains(value T) bool

func (*Set[T]) Delete

func (set *Set[T]) Delete(values ...T)

func (*Set[T]) Iter

func (set *Set[T]) Iter() <-chan T

func (*Set[T]) Length

func (set *Set[T]) Length() int

func (*Set[T]) List

func (set *Set[T]) List() (list []T)

func (*Set[T]) MarshalCBOR

func (set *Set[T]) MarshalCBOR() ([]byte, error)

func (*Set[T]) MarshalJSON

func (set *Set[T]) MarshalJSON() ([]byte, error)

func (*Set[T]) Remove

func (set *Set[T]) Remove(values ...T)

func (*Set[T]) String

func (set *Set[T]) String() string

func (*Set[T]) UnmarshalCBOR

func (set *Set[T]) UnmarshalCBOR(data []byte) error

func (*Set[T]) UnmarshalJSON

func (set *Set[T]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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