masker

package
v2.0.0-...-cfe7cf8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 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 Masker

type Masker uint16

Masker represents a set of one-bits and the ability to enumerate them.

func NewMasker

func NewMasker(i int) Masker

func (Masker) First

func (m Masker) First() Masker

First returns a masker with only the low bit of m.

func (Masker) FirstIndex

func (m Masker) FirstIndex() int

func (Masker) FirstIsIn

func (m Masker) FirstIsIn(n Masker) bool

FirstIsIn returns true if, and only if, the low bit of m is also in n.

func (Masker) Next

func (m Masker) Next() Masker

Next strips the low bit off a Masker.

func (Masker) String

func (m Masker) String() string

func (Masker) SubsetOf

func (m Masker) SubsetOf(mask Masker) bool

Jump to

Keyboard shortcuts

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