pub struct MethodDefinition {
pub name_index: u32,
pub declaring_type: TypeDefinitionIndex,
pub return_type: TypeIndex,
pub parameter_start: i32,
pub generic_container_index: i32,
pub token: u32,
pub flags: u16,
pub iflags: u16,
pub slot: u16,
pub parameter_count: u16,
}Expand description
Il2CppMethodDefinition: one method’s name, signature and flags.
Fields§
§name_index: u32The method’s name, e.g. .ctor or Update. Index into the string pool; read it with Metadata::string.
declaring_type: TypeDefinitionIndexThe type that declares the method.
return_type: TypeIndexThe return type, as a TypeIndex.
parameter_start: i32Index into Metadata::parameters of the first parameter; see Metadata::method_parameters.
generic_container_index: i32Index into Metadata::generic_containers if the method is generic, or -1.
token: u32The method’s MethodDef metadata token in its image; its RID indexes the image’s method pointers in CodeGenModule.
flags: u16MethodAttributes: visibility, static, virtual, abstract, etc.
iflags: u16MethodImplAttributes: e.g. InternalCall, Synchronized.
slot: u16The method’s vtable slot, or 0xFFFF if it has none.
parameter_count: u16How many parameters the method takes, not counting this.
Trait Implementations§
Source§impl Clone for MethodDefinition
impl Clone for MethodDefinition
Source§impl Debug for MethodDefinition
impl Debug for MethodDefinition
Auto Trait Implementations§
impl Forget for MethodDefinition
impl Freeze for MethodDefinition
impl Move for MethodDefinition
impl RefUnwindSafe for MethodDefinition
impl Send for MethodDefinition
impl Sync for MethodDefinition
impl Unpin for MethodDefinition
impl UnsafeUnpin for MethodDefinition
impl UnwindSafe for MethodDefinition
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