featureset

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT-0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureSet

type FeatureSet[Set core.SetOf[Feat], Obj, Feat any] struct {
	BaseSet    Set
	GetFeature func(Obj) Feat
}

func From

func From[Set core.SetOf[Feat], Obj, Feat any](set Set, getFeature func(Obj) Feat) FeatureSet[Set, Obj, Feat]

func (FeatureSet[_, Obj, _]) Contains

func (s FeatureSet[_, Obj, _]) Contains(obj Obj) bool

type ModifiableFeatureSet

type ModifiableFeatureSet[
	Set interface {
		core.SetOf[Feat]
		core.Modifiable[Feat]
	},
	Obj, Feat any,
] struct {
	FeatureSet[Set, Obj, Feat]
}

func FromModifiable

func FromModifiable[
	Set interface {
		core.SetOf[Feat]
		core.Modifiable[Feat]
	},
	Obj, Feat any,
](set Set, getFeature func(Obj) Feat) ModifiableFeatureSet[Set, Obj, Feat]

func (ModifiableFeatureSet[_, Obj, _]) Exclude

func (s ModifiableFeatureSet[_, Obj, _]) Exclude(objs ...Obj)

func (ModifiableFeatureSet[_, Obj, _]) Include

func (s ModifiableFeatureSet[_, Obj, _]) Include(objs ...Obj)

Jump to

Keyboard shortcuts

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