typeset

package
v0.0.0-...-ba58dea Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del[V any](ts *TypeSet)

func Get

func Get[V any](ts *TypeSet) (V, bool)

func Has

func Has[V any](ts *TypeSet) bool

func Pop

func Pop[V any](ts *TypeSet) (V, bool)

func Put

func Put[V any](ts *TypeSet, val V)

func Swap

func Swap[V any](ts *TypeSet, val V) (V, bool)

Types

type TypeSet

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

func From

func From(values ...any) TypeSet

func FromMapKeys

func FromMapKeys[V any](m map[any]V) TypeSet

func FromMapValues

func FromMapValues[K comparable](m map[K]any) TypeSet

func FromSeq

func FromSeq(it iter.Seq[any]) TypeSet

func FromSeq2Keys

func FromSeq2Keys[V any](it iter.Seq2[any, V]) TypeSet

func FromSeq2Values

func FromSeq2Values[K any](it iter.Seq2[K, any]) TypeSet

func FromSlice

func FromSlice(s []any) TypeSet

func Make

func Make() TypeSet

func (*TypeSet) Del

func (ts *TypeSet) Del(val any)

func (*TypeSet) DelType

func (ts *TypeSet) DelType(key ValType)

func (*TypeSet) Get

func (ts *TypeSet) Get(val any) (any, bool)

func (*TypeSet) GetType

func (ts *TypeSet) GetType(typ ValType) (any, bool)

func (*TypeSet) Has

func (ts *TypeSet) Has(val any) bool

func (*TypeSet) HasType

func (ts *TypeSet) HasType(typ ValType) bool

func (*TypeSet) Items

func (ts *TypeSet) Items() map[ValType]any

func (*TypeSet) Len

func (ts *TypeSet) Len() int

func (*TypeSet) Pop

func (ts *TypeSet) Pop(val any) (any, bool)

func (*TypeSet) PopType

func (ts *TypeSet) PopType(key ValType) (any, bool)

func (*TypeSet) Put

func (ts *TypeSet) Put(val any)

func (*TypeSet) Swap

func (ts *TypeSet) Swap(val any) (any, bool)

func (*TypeSet) SwapType

func (ts *TypeSet) SwapType(key ValType, val any) (any, bool)

func (*TypeSet) UnsafeRef

func (ts *TypeSet) UnsafeRef() map[ValType]any

func (*TypeSet) Values

func (ts *TypeSet) Values() []any

type ValType

type ValType = reflect.Type

Jump to

Keyboard shortcuts

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