pub enum TypeKind {
Primitive(u8),
Class(TypeDefinitionIndex),
ValueType(TypeDefinitionIndex),
SzArray(Box<Il2CppType>),
Array {
element: Box<Il2CppType>,
rank: u8,
},
Ptr(Box<Il2CppType>),
GenericInst {
generic: Box<Il2CppType>,
args: Vec<Il2CppType>,
},
Var(i32),
MVar(i32),
FnPtr,
Unknown(u8),
}Variants§
Primitive(u8)
void, bool, …, string, object, IntPtr, TypedReference.
Class(TypeDefinitionIndex)
ValueType(TypeDefinitionIndex)
SzArray(Box<Il2CppType>)
Array
Ptr(Box<Il2CppType>)
GenericInst
Var(i32)
Index into Metadata::generic_parameters.
MVar(i32)
FnPtr
Unknown(u8)
Trait Implementations§
impl StructuralPartialEq for TypeKind
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnsafeUnpin for TypeKind
impl UnwindSafe for TypeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more