Run NodesReferenceutils

setmap

Package setmap

import "github.com/luxfi/node/utils/setmap"

Types

Entry

SetMap

SetMap is a map to a set where all sets are non-overlapping.

func New[K, V comparable]() *SetMap[K, V]
func (m *SetMap[K, V]) DeleteKey(key K) (set.Set[V], bool)
func (m *SetMap[K, V]) DeleteOverlapping(set set.Set[V]) []Entry[K, V]
func (m *SetMap[K, V]) DeleteValue(val V) (K, set.Set[V], bool)
func (m *SetMap[K, V]) GetKey(val V) (K, bool)
func (m *SetMap[K, V]) GetSet(key K) (set.Set[V], bool)
func (m *SetMap[K, _]) HasKey(key K) bool
func (m *SetMap[_, V]) HasOverlap(set set.Set[V]) bool
func (m *SetMap[_, V]) HasValue(val V) bool
func (m *SetMap[K, V]) Len() int
func (m *SetMap[K, V]) LenValues() int
func (m *SetMap[K, V]) Put(key K, set set.Set[V]) []Entry[K, V]