ordset

package
v0.0.0-...-b09507b Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

Set is an ordered set of strings. It uses a specialized in-memory btree with a max size and number of levels. Nodes are fixed size to reduce allocation and bounds checks. ranges uses a variation of this code.

func (*Set) AnyInRange

func (set *Set) AnyInRange(from, to string) bool

func (*Set) Contains

func (set *Set) Contains(key string) bool

func (*Set) Empty

func (set *Set) Empty() bool

func (*Set) Insert

func (set *Set) Insert(key string) bool

func (*Set) String

func (set *Set) String() string

Jump to

Keyboard shortcuts

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