Lyricdev
GitHub

enum TypeKind

pub enum TypeKind :: [Equatable, Debug]

Conforms to Equatable, Debug.

The kind of a type, for decisions while compiling: comptime if (f.type.kind == .Optional).

A struct, a class, an enum, an interface; Primitive for the built-in scalars and string; the shapes ?T, T[], T[N], a view, a tuple, a function; a type parameter in a generic body; Other for what none of these names.

Variants

Primitive
Struct
Class
Enum
Interface
Optional
Array
InlineArray
Slice
Tuple
Function
Parameter
Other