searchtypes

package
v0.0.0-...-528926c Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitset64

type Bitset64 uint64

Bitset64 of types

func NewBitset64

func NewBitset64(types ...uint) (b Bitset64)

NewBitset64 from types

func (*Bitset64) Has

func (b *Bitset64) Has(t uint) bool

Has type in bitset

func (Bitset64) Numbers

func (b Bitset64) Numbers() (list []uint)

Numbers from bites

func (*Bitset64) Set

func (b *Bitset64) Set(types ...uint)

Set type values

func (*Bitset64) Unset

func (b *Bitset64) Unset(types ...uint)

Unset type values

type NumberBitset

type NumberBitset[T constraints.Integer] struct {
	// contains filtered or unexported fields
}

NumberBitset any numbers

func NewNumberBitset

func NewNumberBitset[T constraints.Integer](vals ...T) (b *NumberBitset[T])

NewNumberBitset from numbers

func (*NumberBitset[T]) ContainsAllFrom

func (b *NumberBitset[T]) ContainsAllFrom(set *NumberBitset[T]) (res bool)

ContainsAllFrom items from the set

func (*NumberBitset[T]) Has

func (b *NumberBitset[T]) Has(v T) bool

Has type in bitset

func (*NumberBitset[T]) Len

func (b *NumberBitset[T]) Len() int

Len of the elements

func (*NumberBitset[T]) Mask

func (b *NumberBitset[T]) Mask() uint64

Mask of the set

func (*NumberBitset[T]) Reset

func (b *NumberBitset[T]) Reset() *NumberBitset[T]

Reset bitset value

func (*NumberBitset[T]) Set

func (b *NumberBitset[T]) Set(vals ...T) *NumberBitset[T]

Set type values

func (*NumberBitset[T]) Unset

func (b *NumberBitset[T]) Unset(vals ...T) *NumberBitset[T]

Unset type values

func (*NumberBitset[T]) Values

func (b *NumberBitset[T]) Values() []T

Values list

type ObjectBitset

type ObjectBitset struct {
	// contains filtered or unexported fields
}

ObjectBitset any numbers

func NewObjectBitset

func NewObjectBitset(less func(o1, o2 any) bool, value func(o1 any) uint, vals ...any) (b *ObjectBitset)

NewObjectBitset from numbers

func (*ObjectBitset) Has

func (b *ObjectBitset) Has(v any) bool

Has type in bitset

func (*ObjectBitset) Len

func (b *ObjectBitset) Len() int

Len of the elements

func (*ObjectBitset) Set

func (b *ObjectBitset) Set(vals ...any) *ObjectBitset

Set type values

func (*ObjectBitset) Unset

func (b *ObjectBitset) Unset(vals ...any) *ObjectBitset

Unset type values

func (*ObjectBitset) Values

func (b *ObjectBitset) Values() []any

Values list

Jump to

Keyboard shortcuts

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