pub struct UnityPointer<const CAP: usize> { /* private fields */ }
Available on crate feature
unity
only.Expand description
An IL2CPP-specific implementation for automatic pointer path resolution
Implementations§
Source§impl<const CAP: usize> UnityPointer<CAP>
impl<const CAP: usize> UnityPointer<CAP>
Sourcepub fn new(
class_name: &'static str,
nr_of_parents: usize,
fields: &[&'static str],
) -> Self
pub fn new( class_name: &'static str, nr_of_parents: usize, fields: &[&'static str], ) -> Self
Creates a new instance of the Pointer struct
CAP
should be higher or equal to the number of offsets defined in fields
.
If a higher number of offsets is provided, the pointer path will be truncated
according to the value of CAP
.
Trait Implementations§
Source§impl<const CAP: usize> Clone for UnityPointer<CAP>
impl<const CAP: usize> Clone for UnityPointer<CAP>
Source§fn clone(&self) -> UnityPointer<CAP>
fn clone(&self) -> UnityPointer<CAP>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<const CAP: usize> !Freeze for UnityPointer<CAP>
impl<const CAP: usize> !RefUnwindSafe for UnityPointer<CAP>
impl<const CAP: usize> Send for UnityPointer<CAP>
impl<const CAP: usize> !Sync for UnityPointer<CAP>
impl<const CAP: usize> Unpin for UnityPointer<CAP>
impl<const CAP: usize> UnwindSafe for UnityPointer<CAP>
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