rangeset

package
v0.0.0-...-6a307ac Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitset

type Bitset[V bitset.Value] struct {
	logical.IterableMixin[V]
	// contains filtered or unexported fields
}

func New

func New[V bitset.Value]() *Bitset[V]

func (*Bitset[V]) And

func (a *Bitset[V]) And(b *Bitset[V]) (aAndB *Bitset[V])

And implements bitset.Logical

func (*Bitset[V]) Cap

func (s *Bitset[V]) Cap() int

Cap implements bitset.Inspect

func (*Bitset[V]) Clear

func (s *Bitset[V]) Clear()

func (*Bitset[V]) Copy

func (s *Bitset[V]) Copy() *Bitset[V]

func (*Bitset[V]) Get

func (s *Bitset[V]) Get(index V) bool

Get implements bitset.Bitset

func (*Bitset[V]) Iterate

func (s *Bitset[V]) Iterate() (iterable.Iter[V], uint)

Iterate implements bitset.Inspect

func (*Bitset[V]) Len

func (s *Bitset[V]) Len() int

Len implements bitset.Inspect

func (*Bitset[V]) Or

func (a *Bitset[V]) Or(b *Bitset[V]) (aOrB *Bitset[V])

Or implements bitset.Logical

func (*Bitset[V]) Pop

func (s *Bitset[V]) Pop() uint

Pop implements bitset.Inspect

func (*Bitset[V]) Set

func (s *Bitset[V]) Set(indices ...V)

Set implements bitset.Bitset

func (*Bitset[V]) Unset

func (s *Bitset[V]) Unset(indices ...V)

Unset implements bitset.Bitset

type Iterator

type Iterator[V bitset.Value] struct {
	// contains filtered or unexported fields
}

func (*Iterator[V]) Next

func (it *Iterator[V]) Next() (V, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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