Documentation
¶
Index ¶
- type Trie
- func (t *Trie[T]) Depth() int
- func (m *Trie) Get(key []byte) (val T, current *mapping[T], finish bool)
- func (t *Trie[T]) Keys() [][]byte
- func (t *Trie[T]) Mapping() (m *mapping[T])
- func (t *Trie[T]) Put(key []byte, val T) (finish bool)
- func (t *Trie[T]) Size() int
- func (t *Trie[T]) String() string
- func (t *Trie[T]) Walk(f func(k []byte, v T))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trie ¶
type Trie[T any] struct { // contains filtered or unexported fields }
Trie is a trie tree implementation.
func (*Trie[T]) Mapping ¶
func (t *Trie[T]) Mapping() (m *mapping[T])
Mapping gets the mapping for get only.
Click to show internal directories.
Click to hide internal directories.