pub struct IAllocationStrategy(/* private fields */);Expand description
IL2CPP class: UnityEngine.ResourceManagement.Util.IAllocationStrategy
Implementations§
Source§impl IAllocationStrategy
impl IAllocationStrategy
pub fn new_method_info() -> &'static MethodInfo
pub fn release_method_info() -> &'static MethodInfo
Source§impl IAllocationStrategy
impl IAllocationStrategy
Sourcepub unsafe fn new(
this: impl Into<IlInstance>,
type: SystemType,
type_hash: i32,
) -> Object
pub unsafe fn new( this: impl Into<IlInstance>, type: SystemType, type_hash: i32, ) -> Object
Direct (non-virtual) call to IAllocationStrategy’s own New. Bypasses the vtable, so it won’t hit an override/patch — use it for base calls.
Sourcepub unsafe fn release(this: impl Into<IlInstance>, type_hash: i32, obj: Object)
pub unsafe fn release(this: impl Into<IlInstance>, type_hash: i32, obj: Object)
Direct (non-virtual) call to IAllocationStrategy’s own Release. Bypasses the vtable, so it won’t hit an override/patch — use it for base calls.
Trait Implementations§
Source§impl ClassIdentity for IAllocationStrategy
impl ClassIdentity for IAllocationStrategy
Source§impl Clone for IAllocationStrategy
impl Clone for IAllocationStrategy
Source§fn clone(&self) -> IAllocationStrategy
fn clone(&self) -> IAllocationStrategy
Returns a duplicate 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 moreSource§impl FromIlInstance for IAllocationStrategy
impl FromIlInstance for IAllocationStrategy
fn from_il_instance(instance: IlInstance) -> Self
fn instantiate() -> Option<Self>
§fn instantiate_with_class(class: Class) -> Option<Self>
fn instantiate_with_class(class: Class) -> Option<Self>
Caller swears
class is a subtype of Self or layout compatibleimpl Copy for IAllocationStrategy
impl IIAllocationStrategy for IAllocationStrategy
Auto Trait Implementations§
impl Freeze for IAllocationStrategy
impl RefUnwindSafe for IAllocationStrategy
impl !Send for IAllocationStrategy
impl !Sync for IAllocationStrategy
impl Unpin for IAllocationStrategy
impl UnwindSafe for IAllocationStrategy
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> Cast for Twhere
T: SystemObject,
impl<T> Cast for Twhere
T: SystemObject,
fn get_class(self) -> Class
fn is_null(self) -> bool
fn rebind_class(self, new_class: Class)
fn override_class(self) -> Class
fn is_instance_of<T>(self) -> boolwhere
T: ClassIdentity,
fn is_direct_subclass_of<T>(self) -> boolwhere
T: ClassIdentity,
fn try_cast<T>(self) -> Option<T>where
T: ClassIdentity + FromIlInstance,
§unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
Safety Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)