Struct libil2cpp::Il2CppObject
source · [−]#[repr(transparent)]pub struct Il2CppObject(_);
Expand description
An il2cpp object
Implementations
sourceimpl Il2CppObject
impl 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 Il2CppObject
impl Debug for Il2CppObject
sourceimpl Type for Il2CppObject
impl Type for Il2CppObject
type Held<'a> = Option<&'a mut Il2CppObject>
type Held<'a> = Option<&'a mut Il2CppObject>
Type of the values held in variables of the type
type HeldRaw = *mut Il2CppObject
type HeldRaw = *mut Il2CppObject
Non-generic version of [Held
].
sourceconst CLASS_NAME: &'static str = "Object"
const CLASS_NAME: &'static str = "Object"
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 Il2CppObject
impl WrapRaw for Il2CppObject
type Raw = Il2CppObject
type Raw = Il2CppObject
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 Il2CppObject
impl !Send for Il2CppObject
impl !Sync for Il2CppObject
impl Unpin for Il2CppObject
impl UnwindSafe for Il2CppObject
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