Skip to main content

TYPEKIND_ENUM

Static TYPEKIND_ENUM 

Source
pub static TYPEKIND_ENUM: BuiltinEnumDef
Expand description

The built-in TypeKind enum for compile-time type reflection.

Variants represent different type classifications, used by @typeInfo.

Variants:

  • Struct (index 0): Struct types
  • Enum (index 1): Enum types
  • Int (index 2): Integer types (i8..i64, u8..u64)
  • Bool (index 3): Boolean type
  • Unit (index 4): Unit type
  • Never (index 5): Never type
  • Array (index 6): Fixed-size array types