rbt

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RBTree added in v1.1.12

type RBTree interface {
	Add(val Value) (ok bool)
	Delete(val Value) (ok bool)
	Exists(val Value) (ok bool)
	Size() uint32
	Empty() bool
	Maximum() []Value
	Minimum() []Value
	PopMaximum() []Value
	PopMinimum() []Value
	Asc() []Value
	Desc() []Value
	String() string
}

func New added in v1.1.12

func New() RBTree

type Value

type Value interface {
	ID() string
	String() string
	Compare(Value) stringutil.Diff
}

Jump to

Keyboard shortcuts

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