kinds

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: CC0-1.0, CC0-1.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func IsPrivileged

func IsPrivileged(k ...kind.T) (is bool)

Types

type T

type T []kind.T

func FromIntSlice

func FromIntSlice(is []int) (k T)

func (T) Clone

func (k T) Clone() (c T)

Clone makes a new kind.T with the same members.

func (T) Contains

func (k T) Contains(s kind.T) bool

Contains returns true if the provided element is found in the kinds.T.

Note that the request must use the typed kind.T or convert the number thus. Even if a custom number is found, this codebase does not have the logic to deal with the kind so such a search is pointless and for which reason static typing always wins. No mistakes possible with known quantities.

func (T) Equals

func (k T) Equals(t1 T) bool

Equals checks that the provided kind.T matches.

func (T) ToArray

func (k T) ToArray() (a array.T)

ToArray converts to the generic array.T type ([]interface{})

func (T) ToUint16

func (k T) ToUint16() (o []uint16)

Jump to

Keyboard shortcuts

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