#[repr(C)]pub struct MethodInfo {Show 14 fields
pub method_ptr: *mut u8,
pub invoker_method: *const u8,
pub name: *const u8,
pub class: Option<&'static Il2CppClass>,
pub return_type: *const u8,
pub parameters: *const ParameterInfo,
pub info_or_definition: *const u8,
pub generic_method_or_container: *const u8,
pub token: u32,
pub flags: u16,
pub iflags: u16,
pub slot: u16,
pub parameters_count: u8,
pub bitflags: u8,
}
Expand description
Type representing the reflection information of a C# method.
Can be used to query various things such as the name, argument count and much more.
Fields§
§method_ptr: *mut u8
§invoker_method: *const u8
§name: *const u8
§class: Option<&'static Il2CppClass>
§return_type: *const u8
§parameters: *const ParameterInfo
§info_or_definition: *const u8
§generic_method_or_container: *const u8
§token: u32
§flags: u16
§iflags: u16
§slot: u16
§parameters_count: u8
§bitflags: u8
Implementations§
source§impl MethodInfo
impl MethodInfo
sourcepub fn get_parameters(&self) -> &[ParameterInfo]
pub fn get_parameters(&self) -> &[ParameterInfo]
Get the parameters expected by the method.
Trait Implementations§
source§impl Clone for MethodInfo
impl Clone for MethodInfo
source§fn clone(&self) -> MethodInfo
fn clone(&self) -> MethodInfo
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for MethodInfo
impl Send for MethodInfo
impl Sync for MethodInfo
Auto Trait Implementations§
impl Freeze for MethodInfo
impl RefUnwindSafe for MethodInfo
impl Unpin for MethodInfo
impl UnwindSafe for MethodInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)