Struct vulkanalia::vk::AllocationCallbacks
source · #[repr(C)]pub struct AllocationCallbacks {
pub user_data: *mut c_void,
pub allocation: Option<unsafe extern "system" fn(_: *mut c_void, _: usize, _: usize, _: SystemAllocationScope) -> *mut c_void>,
pub reallocation: Option<unsafe extern "system" fn(_: *mut c_void, _: *mut c_void, _: usize, _: usize, _: SystemAllocationScope) -> *mut c_void>,
pub free: Option<unsafe extern "system" fn(_: *mut c_void, _: *mut c_void)>,
pub internal_allocation: Option<unsafe extern "system" fn(_: *mut c_void, _: usize, _: InternalAllocationType, _: SystemAllocationScope)>,
pub internal_free: Option<unsafe extern "system" fn(_: *mut c_void, _: usize, _: InternalAllocationType, _: SystemAllocationScope)>,
}
Expand description
Fields§
§user_data: *mut c_void
§allocation: Option<unsafe extern "system" fn(_: *mut c_void, _: usize, _: usize, _: SystemAllocationScope) -> *mut c_void>
§reallocation: Option<unsafe extern "system" fn(_: *mut c_void, _: *mut c_void, _: usize, _: usize, _: SystemAllocationScope) -> *mut c_void>
§free: Option<unsafe extern "system" fn(_: *mut c_void, _: *mut c_void)>
§internal_allocation: Option<unsafe extern "system" fn(_: *mut c_void, _: usize, _: InternalAllocationType, _: SystemAllocationScope)>
§internal_free: Option<unsafe extern "system" fn(_: *mut c_void, _: usize, _: InternalAllocationType, _: SystemAllocationScope)>
Trait Implementations§
source§impl Cast for AllocationCallbacks
impl Cast for AllocationCallbacks
§type Target = AllocationCallbacks
type Target = AllocationCallbacks
The other type this type can be used interchangeably with in FFI.
source§impl Clone for AllocationCallbacks
impl Clone for AllocationCallbacks
source§fn clone(&self) -> AllocationCallbacks
fn clone(&self) -> AllocationCallbacks
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 moresource§impl Debug for AllocationCallbacks
impl Debug for AllocationCallbacks
source§impl Default for AllocationCallbacks
impl Default for AllocationCallbacks
source§fn default() -> AllocationCallbacks
fn default() -> AllocationCallbacks
Returns the “default value” for a type. Read more
source§impl<'b> HasBuilder<'b> for AllocationCallbacks
impl<'b> HasBuilder<'b> for AllocationCallbacks
impl Copy for AllocationCallbacks
Auto Trait Implementations§
impl RefUnwindSafe for AllocationCallbacks
impl !Send for AllocationCallbacks
impl !Sync for AllocationCallbacks
impl Unpin for AllocationCallbacks
impl UnwindSafe for AllocationCallbacks
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