rtype

package
v2.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RType

type RType struct{}

func MapOf

func MapOf(key, elem *RType) *RType

MapOf returns the map type with the given key and element types. For example, if k represents int and e represents string, MapOf(k, e) represents map[int]string.

If the key type is not a valid map key type (that is, if it does not implement Go's == operator), MapOf panics.

func PtrTo

func PtrTo(t *RType) *RType

PtrTo returns the pointer type with element t. For example, if t represents type Foo, PtrTo(t) represents *Foo.

func RTypeOf

func RTypeOf(v interface{}) *RType

RTypeOf returns the underlying rtype pointer of the given interface{} value.

func SliceOf

func SliceOf(t *RType) *RType

SliceOf returns the slice type with element type t. For example, if t represents int, SliceOf(t) represents []int.

func ToRType

func ToRType(t reflect.Type) *RType

ToRType converts a reflect.Type value to *Type.

func (*RType) Align

func (t *RType) Align() int

func (*RType) AssignableTo

func (t *RType) AssignableTo(u reflect.Type) bool

func (*RType) Bits

func (t *RType) Bits() int

func (*RType) ChanDir

func (t *RType) ChanDir() reflect.ChanDir

func (*RType) Comparable

func (t *RType) Comparable() bool

func (*RType) ConvertibleTo

func (t *RType) ConvertibleTo(u reflect.Type) bool

func (*RType) Elem

func (t *RType) Elem() *RType

func (*RType) Field

func (t *RType) Field(i int) reflect.StructField

func (*RType) FieldAlign

func (t *RType) FieldAlign() int

func (*RType) FieldByIndex

func (t *RType) FieldByIndex(index []int) reflect.StructField

func (*RType) FieldByName

func (t *RType) FieldByName(name string) (reflect.StructField, bool)

func (*RType) FieldByNameFunc

func (t *RType) FieldByNameFunc(match func(string) bool) (reflect.StructField, bool)

func (*RType) IfaceIndir

func (t *RType) IfaceIndir() bool

func (*RType) Implements

func (t *RType) Implements(u reflect.Type) bool

func (*RType) In

func (t *RType) In(i int) reflect.Type

func (*RType) IsVariadic

func (t *RType) IsVariadic() bool

func (*RType) Key

func (t *RType) Key() *RType

func (*RType) Kind

func (t *RType) Kind() reflect.Kind

func (*RType) Len

func (t *RType) Len() int

func (*RType) Method

func (t *RType) Method(a0 int) reflect.Method

func (*RType) MethodByName

func (t *RType) MethodByName(a0 string) (reflect.Method, bool)

func (*RType) Name

func (t *RType) Name() string

func (*RType) NumField

func (t *RType) NumField() int

func (*RType) NumIn

func (t *RType) NumIn() int

func (*RType) NumMethod

func (t *RType) NumMethod() int

func (*RType) NumOut

func (t *RType) NumOut() int

func (*RType) Out

func (t *RType) Out(i int) reflect.Type

func (*RType) PackInterface

func (t *RType) PackInterface(word unsafe.Pointer) interface{}

func (*RType) PkgPath

func (t *RType) PkgPath() string

func (*RType) Pointer

func (t *RType) Pointer() unsafe.Pointer

func (*RType) Size

func (t *RType) Size() uintptr

func (*RType) String

func (t *RType) String() string

func (*RType) ToType

func (t *RType) ToType() reflect.Type

Jump to

Keyboard shortcuts

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