kinds

package
v1.2.36 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

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

func FromIntSlice

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

func New

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

func NewWithCap

func NewWithCap(c no) *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) bo

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) bo

Equals checks that the provided kind.T matches.

func (*T) IsPrivileged

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

func (*T) Len

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

func (*T) Less

func (k *T) Less(i, j no) bo

func (*T) MarshalJSON

func (k *T) MarshalJSON(dst by) (b by, err er)

func (*T) Swap

func (k *T) Swap(i, j no)

func (*T) ToUint16

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

func (*T) UnmarshalJSON

func (k *T) UnmarshalJSON(b by) (r by, err er)

Jump to

Keyboard shortcuts

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