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)>,
}

Fields

user_data: *mut c_voidallocation: 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

impl Cast for AllocationCallbacks[src]

type Target = AllocationCallbacks

The other type this type type can be used interchangeably with in FFI.

impl Clone for AllocationCallbacks[src]

impl Copy for AllocationCallbacks[src]

impl Debug for AllocationCallbacks[src]

impl Default for AllocationCallbacks[src]

impl<'b> HasBuilder<'b> for AllocationCallbacks[src]

type Builder = AllocationCallbacksBuilder<'b>

The associated builder for this type.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.