Skip to content

TypeInfo

IsaacShelton edited this page Mar 21, 2022 · 1 revision

TypeInfo (experimental)

Definitions

alias TypeInfo = *AnyType
alias StructTypeInfo = *AnyStructType

Globals

__typeinfo__ DummyStructForGlobalRTTI

where DummyStructForGlobalRTTI is defined as

struct DummyStructForGlobalRTTI () {
    func __array__ **AnyType = __types__
    func __length__ usize = __types_length__
}

Methods

  • func getName(this *AnyType) String
  • func isAlias(this *AnyType) bool
  • func isStruct(this *AnyType) bool
  • func asStruct(this *AnyType) *AnyStructType
  • func getMemberNamesList(this *AnyType) <String> List
  • func getMemberNamesList(this *AnyStructType) <String> List
  • func getMemberCount(this *AnyType) usize
  • func getMemberCount(this *AnyType) usize
  • func getMemberNames(this *AnyType) <*ubyte> Array
  • func getMemberNames(this *AnyStructType) <*ubyte> Array
  • func getMemberTypes(this *AnyType) <*AnyType> Array
  • func getMemberTypes(this *AnyStructType) <*AnyType> Array
Clone this wiki locally