Documentation ¶
Index ¶
- Variables
- func Category(k r.Kind) r.Kind
- func ConvertValue(v xr.Value, to r.Type) xr.Value
- func ConvertValueR(v r.Value, to r.Type) r.Value
- func IsCategory(k r.Kind, categories ...r.Kind) bool
- func IsNillableKind(k r.Kind) bool
- func IsOptimizedKind(k r.Kind) bool
- func KindToType(k r.Kind) r.Type
- func PackTypes(typ0 xr.Type, types []xr.Type) []xr.Type
- func PackValues(val0 xr.Value, values []xr.Value) []xr.Value
- func PackValuesR(val0 r.Value, values []r.Value) []r.Value
- func UnpackValues(vals []r.Value) (r.Value, []r.Value)
- func ValueInterface(v xr.Value) interface{}
- func ValueInterfaceR(v r.Value) interface{}
- func ValueType(value xr.Value) r.Type
- func ValueTypeR(value r.Value) r.Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NilR = r.Value{} Nil = xr.MakeValue(NilR) NoneR = r.ValueOf(none{}) // used to indicate "no value" None = xr.MakeValue(NoneR) TypeOfInt = r.TypeOf(int(0)) TypeOfInt8 = r.TypeOf(int8(0)) TypeOfInt16 = r.TypeOf(int16(0)) TypeOfInt32 = r.TypeOf(int32(0)) TypeOfInt64 = r.TypeOf(int64(0)) TypeOfUint = r.TypeOf(uint(0)) TypeOfUint8 = r.TypeOf(uint8(0)) TypeOfUint16 = r.TypeOf(uint16(0)) TypeOfUint32 = r.TypeOf(uint32(0)) TypeOfUint64 = r.TypeOf(uint64(0)) TypeOfUintptr = r.TypeOf(uintptr(0)) TypeOfFloat32 = r.TypeOf(float32(0)) TypeOfFloat64 = r.TypeOf(float64(0)) TypeOfComplex64 = r.TypeOf(complex64(0)) TypeOfComplex128 = r.TypeOf(complex128(0)) TypeOfBool = r.TypeOf(false) TypeOfString = r.TypeOf("") )
Functions ¶
func ConvertValue ¶
ConvertValue converts a value to type t and returns the converted value. extends reflect.Value.Convert(t) by allowing conversions from/to complex numbers. does not check for overflows or truncation.
func ConvertValueR ¶
ConvertValueR converts a value to type t and returns the converted value. extends reflect.Value.Convert(t) by allowing conversions from/to complex numbers. does not check for overflows or truncation.
func IsNillableKind ¶
func IsOptimizedKind ¶
IsOptimizedKind returns true if fast interpreter expects optimized expressions for given Kind
func ValueInterface ¶
ValueInterface() is a zero-value-safe version of xreflect.Value.Interface()
func ValueInterfaceR ¶
ValueInterfaceR() is a zero-value-safe version of reflect.Value.Interface()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.