Documentation ¶
Index ¶
- type Rigid
- type Set
- func (set *Set[T]) Add(values ...T)
- func (set *Set[T]) Contains(value T) bool
- func (set *Set[T]) Delete(values ...T)
- func (set *Set[T]) Iter() <-chan T
- func (set *Set[T]) Length() int
- func (set *Set[T]) List() (list []T)
- func (set *Set[T]) MarshalCBOR() ([]byte, error)
- func (set *Set[T]) MarshalJSON() ([]byte, error)
- func (set *Set[T]) Remove(values ...T)
- func (set *Set[T]) String() string
- func (set *Set[T]) UnmarshalCBOR(data []byte) error
- func (set *Set[T]) UnmarshalJSON(data []byte) error
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]
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]) MarshalCBOR ¶
func (*Set[T]) MarshalJSON ¶
func (*Set[T]) UnmarshalCBOR ¶
func (*Set[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.