Documentation ¶
Overview ¶
Index ¶
- type BiMap
- func (b *BiMap[K, V]) Delete(k K) bool
- func (b *BiMap[K, V]) DeleteInverse(v V) bool
- func (b *BiMap[K, V]) Exists(k K) bool
- func (b *BiMap[K, V]) ExistsInverse(k V) bool
- func (b *BiMap[K, V]) Get(k K) (V, bool)
- func (b *BiMap[K, V]) GetForwardMap() map[K]V
- func (b *BiMap[K, V]) GetInverse(v V) (K, bool)
- func (b *BiMap[K, V]) GetInverseMap() map[V]K
- func (b *BiMap[K, V]) Insert(k K, v V) bool
- func (b *BiMap[K, V]) MakeImmutable()
- func (b *BiMap[K, V]) Reset()
- func (b *BiMap[K, V]) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BiMap ¶
type BiMap[K hashable, V hashable] struct {
// contains filtered or unexported fields
}
func NewFromMap ¶
func NewFromMap[K hashable, V hashable](f map[K]V) *BiMap[K, V]
func (*BiMap[K, V]) DeleteInverse ¶
func (*BiMap[K, V]) ExistsInverse ¶
func (*BiMap[K, V]) GetForwardMap ¶
func (b *BiMap[K, V]) GetForwardMap() map[K]V
func (*BiMap[K, V]) GetInverse ¶
func (*BiMap[K, V]) GetInverseMap ¶
func (b *BiMap[K, V]) GetInverseMap() map[V]K
func (*BiMap[K, V]) MakeImmutable ¶
func (b *BiMap[K, V]) MakeImmutable()
Click to show internal directories.
Click to hide internal directories.