#[repr(transparent)]pub struct FieldInfo(_);
Expand description
Information about a C# field
Implementations
sourceimpl FieldInfo
impl FieldInfo
sourcepub fn store<A>(&self, instance: &mut Il2CppObject, val: A) where
A: Argument,
pub fn store<A>(&self, instance: &mut Il2CppObject, val: A) where
A: Argument,
Store a typechecked value into a field
sourcepub unsafe fn store_unchecked<A>(&self, instance: &mut Il2CppObject, val: A) where
A: Argument,
pub unsafe fn store_unchecked<A>(&self, instance: &mut Il2CppObject, val: A) where
A: Argument,
Store a value into a field without type checking
Safety
To be safe, the provided type has to match the field signature
sourcepub fn load<'a, T>(&self, instance: &'a mut Il2CppObject) -> T::Held<'a> where
T: Type,
pub fn load<'a, T>(&self, instance: &'a mut Il2CppObject) -> T::Held<'a> where
T: Type,
Load a typechecked value from a field
sourcepub unsafe fn load_unchecked<'a, T>(
&self,
instance: &'a mut Il2CppObject
) -> T::Held<'a> where
T: Type,
pub unsafe fn load_unchecked<'a, T>(
&self,
instance: &'a mut Il2CppObject
) -> T::Held<'a> where
T: Type,
Load a value from a field without type checking
Safety
To be safe, the provided type has to match the field signature
sourcepub fn parent(&self) -> &Il2CppClass
pub fn parent(&self) -> &Il2CppClass
Class the field is from
sourcepub fn ty(&self) -> &Il2CppType
pub fn ty(&self) -> &Il2CppType
Type of the field
Trait Implementations
sourceimpl WrapRaw for FieldInfo
impl WrapRaw for FieldInfo
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
impl Send for FieldInfo
impl Sync for FieldInfo
Auto Trait Implementations
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