#[repr(C)]pub struct IUnityMemoryManager {
pub CreateAllocator: Option<unsafe extern "system" fn(areaName: *const c_char, objectName: *const c_char) -> *mut UnityAllocator>,
pub DestroyAllocator: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator)>,
pub Allocate: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator, size: usize, align: usize, file: *const c_char, line: i32) -> *mut c_void>,
pub Deallocate: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator, ptr: *mut c_void, file: *const c_char, line: i32)>,
pub Reallocate: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator, ptr: *mut c_void, size: usize, align: usize, file: *const c_char, line: i32) -> *mut c_void>,
}
Fields§
§CreateAllocator: Option<unsafe extern "system" fn(areaName: *const c_char, objectName: *const c_char) -> *mut UnityAllocator>
§DestroyAllocator: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator)>
§Allocate: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator, size: usize, align: usize, file: *const c_char, line: i32) -> *mut c_void>
§Deallocate: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator, ptr: *mut c_void, file: *const c_char, line: i32)>
§Reallocate: Option<unsafe extern "system" fn(allocator: *mut UnityAllocator, ptr: *mut c_void, size: usize, align: usize, file: *const c_char, line: i32) -> *mut c_void>
Trait Implementations§
Source§impl Clone for IUnityMemoryManager
impl Clone for IUnityMemoryManager
Source§fn clone(&self) -> IUnityMemoryManager
fn clone(&self) -> IUnityMemoryManager
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for IUnityMemoryManager
impl Default for IUnityMemoryManager
Source§fn default() -> IUnityMemoryManager
fn default() -> IUnityMemoryManager
Returns the “default value” for a type. Read more
impl Copy for IUnityMemoryManager
Auto Trait Implementations§
impl Freeze for IUnityMemoryManager
impl RefUnwindSafe for IUnityMemoryManager
impl Send for IUnityMemoryManager
impl Sync for IUnityMemoryManager
impl Unpin for IUnityMemoryManager
impl UnwindSafe for IUnityMemoryManager
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