uintset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UintSet

type UintSet map[uint32]struct{}

A UintSet is a set of uint32s

func FromValues

func FromValues(values []uint32) UintSet

FromValues initializes a uint32 set with values.

func New

func New() UintSet

New returns a new uint32 set.

func (UintSet) Add

func (s UintSet) Add(itm uint32)

Add adds an item to the set.

func (UintSet) Contains

func (s UintSet) Contains(itm uint32) bool

Contains tests if the item is in the set.

func (UintSet) Equals

func (s UintSet) Equals(other UintSet) bool

Equals checks for set equality.

func (UintSet) Intersection

func (s UintSet) Intersection(other UintSet) UintSet

Intersection updates the current set to reflect the intersection between sets.

func (UintSet) Remove

func (s UintSet) Remove(itm uint32)

Remove removes an item from the set.

func (UintSet) Union

func (s UintSet) Union(other UintSet) UintSet

Union updates current uint32 set to reflect the union between sets.

func (UintSet) Values

func (s UintSet) Values() []uint32

Values returns the values in the set.

Jump to

Keyboard shortcuts

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