kinds

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type B

type B = []byte

type E

type E = error

type S

type S = string

type T

type T struct {
	K []*kind.T
}

func FromIntSlice

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

func New

func New(k ...*kind.T) *T

func NewWithCap

func NewWithCap(c int) *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) IsPrivileged

func (k *T) IsPrivileged() (priv bool)

func (*T) Len

func (k *T) Len() (l int)

func (*T) MarshalJSON

func (k *T) MarshalJSON(dst B) (b B, err error)

func (*T) ToUint16

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

func (*T) UnmarshalJSON

func (k *T) UnmarshalJSON(b B) (r B, err error)

Jump to

Keyboard shortcuts

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