TypeKind
Declaration
TypeKind :: enum #compiler {
Type :: 1;
Void :: 2;
Int :: 3;
Real :: 4;
Fn :: 5;
Ptr :: 6;
Bool :: 7;
Array :: 8;
Struct :: 9;
Enum :: 10;
Null :: 11;
String :: 12;
}
Description
TypeKind describes kind of BL type returned in TypeInfo structure. This value can be used for safe casting.
Variants
TypeBase type of all types in type system.VoidVoid type. (Implicitly used for functions without return value)IntAny integer type:s8,s16,s32,s64,u8,u16,u32,u64,usize.RealAny real type:f32,f64.FnFunction type.PtrPointer type.BoolBoolean type.ArrayArray type.StructStructure type.EnumEnumerator type.NullNull-value type.StringString type.
Declared in: _builtin.bl