Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateBitMasks ¶
IterateBitMasks iterates all possible masks from a list of bits, issuing a callback on each mask.
Types ¶
type BitMask ¶
type BitMask interface {
Add(bits ...int) error
Remove(bits ...int) error
And(masks ...BitMask)
Or(masks ...BitMask)
Clear()
Fill()
IsEqual(mask BitMask) bool
IsEmpty() bool
IsSet(bit int) bool
AnySet(bits []int) bool
IsNarrowerThan(mask BitMask) bool
IsLessThan(mask BitMask) bool
IsGreaterThan(mask BitMask) bool
String() string
Count() int
GetBits() []int
}
BitMask interface allows hint providers to create BitMasks for TopologyHints
Click to show internal directories.
Click to hide internal directories.