#[repr(C)]pub enum TypeKind {
Primitive(PrimitiveType),
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(PrimitiveType)
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 Forget for TypeKind
impl Freeze for TypeKindwhere
*const Il2CppType is !null: Freeze,
PhantomData<Il2CppType>: Freeze,
*const u8 is !null: Freeze,
impl Move for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnsafeUnpin for TypeKindwhere
*const Il2CppType is !null: UnsafeUnpin,
PhantomData<Il2CppType>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
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