Struct physx::foundation::GlobalAllocCallback
source · [−]pub struct GlobalAllocCallback;
Expand description
A very simple allocator that calls through to Rust’s GlobalAllocator.
Trait Implementations
sourceimpl AllocatorCallback for GlobalAllocCallback
impl AllocatorCallback for GlobalAllocCallback
sourceunsafe extern "C" fn allocate(
size: u64,
_name: *const c_void,
_file: *const c_void,
_line: u32,
_user_data: *const c_void
) -> *mut c_void
unsafe extern "C" fn allocate(
size: u64,
_name: *const c_void,
_file: *const c_void,
_line: u32,
_user_data: *const c_void
) -> *mut c_void
Safety Read more
sourceunsafe extern "C" fn deallocate(
ptr: *const c_void,
_user_data: *const c_void
)
unsafe extern "C" fn deallocate(
ptr: *const c_void,
_user_data: *const c_void
)
Safety Read more
sourceunsafe fn into_px(self) -> *mut PxAllocatorCallback
unsafe fn into_px(self) -> *mut PxAllocatorCallback
Safety Read more
Auto Trait Implementations
impl RefUnwindSafe for GlobalAllocCallback
impl Send for GlobalAllocCallback
impl Sync for GlobalAllocCallback
impl Unpin for GlobalAllocCallback
impl UnwindSafe for GlobalAllocCallback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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