Struct libil2cpp::Il2CppReflectionMethod
source · [−]pub struct Il2CppReflectionMethod(_);
Expand description
Object used for reflection of methods
Implementations
sourceimpl Il2CppReflectionMethod
impl Il2CppReflectionMethod
sourcepub fn method_info(&self) -> &MethodInfo
pub fn method_info(&self) -> &MethodInfo
MethodInfo
which this object represents
Methods from Deref<Target = Il2CppObject>
sourcepub fn class(&self) -> &'static Il2CppClass
pub fn class(&self) -> &'static Il2CppClass
Il2CppClass
of the object
sourcepub fn invoke<A, R, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<R, &mut Il2CppException> where
A: Arguments<N>,
R: Returned,
pub fn invoke<A, R, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<R, &mut Il2CppException> where
A: Arguments<N>,
R: Returned,
Invokes the method with the given name on self
using the given
arguments, with type checking
Panics
This method will panic if a matching method can’t be found.
sourcepub fn invoke_void<A, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<(), &mut Il2CppException> where
A: Arguments<N>,
pub fn invoke_void<A, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<(), &mut Il2CppException> where
A: Arguments<N>,
Invokes the void
method with the given name on self
using the
given arguments, with type checking
Panics
This method will panic if a matching method can’t be found.
Trait Implementations
sourceimpl Debug for Il2CppReflectionMethod
impl Debug for Il2CppReflectionMethod
sourceimpl Deref for Il2CppReflectionMethod
impl Deref for Il2CppReflectionMethod
type Target = Il2CppObject
type Target = Il2CppObject
The resulting type after dereferencing.
sourceimpl DerefMut for Il2CppReflectionMethod
impl DerefMut for Il2CppReflectionMethod
sourceimpl Type for Il2CppReflectionMethod
impl Type for Il2CppReflectionMethod
type Held<'a> = Option<&'a mut Il2CppReflectionMethod>
type Held<'a> = Option<&'a mut Il2CppReflectionMethod>
Type of the values held in variables of the type
type HeldRaw = *mut Il2CppReflectionMethod
type HeldRaw = *mut Il2CppReflectionMethod
Non-generic version of [Held
].
sourceconst NAMESPACE: &'static str = "System.Reflection"
const NAMESPACE: &'static str = "System.Reflection"
Namespace containingthe class the type represents
sourceconst CLASS_NAME: &'static str = "MonoMethod"
const CLASS_NAME: &'static str = "MonoMethod"
Name of the class the type represents
sourcefn matches_reference_argument(ty: &Il2CppType) -> bool
fn matches_reference_argument(ty: &Il2CppType) -> bool
Whether a reference to the type can be used as an argument of the given
Il2CppType
Read more
sourcefn matches_value_argument(_: &Il2CppType) -> bool
fn matches_value_argument(_: &Il2CppType) -> bool
Whether a value of the type can be used as an argument of the given
Il2CppType
Read more
sourcefn matches_reference_parameter(ty: &Il2CppType) -> bool
fn matches_reference_parameter(ty: &Il2CppType) -> bool
Whether a reference to the type can be used as a parameter of the given
Il2CppType
Read more
sourcefn matches_value_parameter(_: &Il2CppType) -> bool
fn matches_value_parameter(_: &Il2CppType) -> bool
Whether a value of the type can be used as a parameter of the given
Il2CppType
Read more
sourcefn class() -> &'static Il2CppClass
fn class() -> &'static Il2CppClass
Il2CppClass
of the type
sourcefn matches_this_argument(method: &MethodInfo) -> bool
fn matches_this_argument(method: &MethodInfo) -> bool
Whether the type can be used as a this
argument for the given
MethodInfo
Read more
sourcefn matches_this_parameter(method: &MethodInfo) -> bool
fn matches_this_parameter(method: &MethodInfo) -> bool
Whether the type can be used as a this
parameter for the given
MethodInfo
Read more
sourcefn matches_returned(ty: &Il2CppType) -> bool
fn matches_returned(ty: &Il2CppType) -> bool
Whether the type can be used as the value of the given Il2CppType
returned from a C# method Read more
sourcefn matches_return(ty: &Il2CppType) -> bool
fn matches_return(ty: &Il2CppType) -> bool
Whether the type can be used as the return value of the given
Il2CppType
for a C# method Read more
sourceimpl WrapRaw for Il2CppReflectionMethod
impl WrapRaw for Il2CppReflectionMethod
type Raw = Il2CppReflectionMethod
type Raw = Il2CppReflectionMethod
Raw il2cpp type
sourceunsafe fn raw_mut(&mut self) -> &mut Self::Raw
unsafe fn raw_mut(&mut self) -> &mut Self::Raw
Returns a mutable reference to the underlying raw il2cpp type Read more
sourceunsafe fn wrap_mut(raw: &mut Self::Raw) -> &mut Self
unsafe fn wrap_mut(raw: &mut Self::Raw) -> &mut Self
Wraps a mutable reference to the raw il2cpp type Read more
Auto Trait Implementations
impl RefUnwindSafe for Il2CppReflectionMethod
impl !Send for Il2CppReflectionMethod
impl !Sync for Il2CppReflectionMethod
impl Unpin for Il2CppReflectionMethod
impl UnwindSafe for Il2CppReflectionMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more