Struct vulkanalia::vk::AllocationCallbacks [−][src]
#[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
type Target = AllocationCallbacks
type Target = AllocationCallbacks
The other type this type type can be used interchangeably with in FFI.
Returns the “default value” for a type. Read more
type Builder = AllocationCallbacksBuilder<'b>
type Builder = AllocationCallbacksBuilder<'b>
The associated builder for this type.
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
Mutably borrows from an owned value. Read more