Skip to main content

luaur_analysis/enums/
type_kind.rs

1#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2#[repr(i32)]
3#[allow(non_camel_case_types)]
4pub enum TypeKind {
5    Kind_Unknown,
6    /// primitive type supported by VM - boolean/userdata/etc. No differentiation between types of userdata.
7    Kind_Primitive,
8    /// TODO: deprecated and not set, but read in 'visit'
9    Kind_Vector,
10    /// custom userdata type
11    Kind_Userdata,
12}
13
14impl TypeKind {
15    pub const Kind_Unknown: Self = Self::Kind_Unknown;
16    pub const Kind_Primitive: Self = Self::Kind_Primitive;
17    pub const Kind_Vector: Self = Self::Kind_Vector;
18    pub const Kind_Userdata: Self = Self::Kind_Userdata;
19}