pub struct AllocationCallbacksBuilder<'b> { /* private fields */ }Expand description
A builder for a AllocationCallbacks.
Implementations§
Source§impl<'b> AllocationCallbacksBuilder<'b>
impl<'b> AllocationCallbacksBuilder<'b>
pub fn user_data<T>(self, user_data: &'b mut T) -> Self
pub fn allocation(self, allocation: PFN_vkAllocationFunction) -> Self
pub fn reallocation(self, reallocation: PFN_vkReallocationFunction) -> Self
pub fn free(self, free: PFN_vkFreeFunction) -> Self
pub fn internal_allocation( self, internal_allocation: PFN_vkInternalAllocationNotification, ) -> Self
pub fn internal_free( self, internal_free: PFN_vkInternalFreeNotification, ) -> Self
pub fn build(self) -> AllocationCallbacks
Trait Implementations§
Source§impl Cast for AllocationCallbacksBuilder<'_>
impl Cast for AllocationCallbacksBuilder<'_>
Source§type Target = AllocationCallbacks
type Target = AllocationCallbacks
The other type this type can be used interchangeably with in FFI.
Source§impl<'b> Clone for AllocationCallbacksBuilder<'b>
impl<'b> Clone for AllocationCallbacksBuilder<'b>
Source§fn clone(&self) -> AllocationCallbacksBuilder<'b>
fn clone(&self) -> AllocationCallbacksBuilder<'b>
Returns a duplicate 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<'b> Debug for AllocationCallbacksBuilder<'b>
impl<'b> Debug for AllocationCallbacksBuilder<'b>
Source§impl<'b> Default for AllocationCallbacksBuilder<'b>
impl<'b> Default for AllocationCallbacksBuilder<'b>
Source§fn default() -> AllocationCallbacksBuilder<'b>
fn default() -> AllocationCallbacksBuilder<'b>
Returns the “default value” for a type. Read more
Source§impl Deref for AllocationCallbacksBuilder<'_>
impl Deref for AllocationCallbacksBuilder<'_>
Source§impl DerefMut for AllocationCallbacksBuilder<'_>
impl DerefMut for AllocationCallbacksBuilder<'_>
impl<'b> Copy for AllocationCallbacksBuilder<'b>
Auto Trait Implementations§
impl<'b> Freeze for AllocationCallbacksBuilder<'b>
impl<'b> RefUnwindSafe for AllocationCallbacksBuilder<'b>
impl<'b> Send for AllocationCallbacksBuilder<'b>
impl<'b> Sync for AllocationCallbacksBuilder<'b>
impl<'b> Unpin for AllocationCallbacksBuilder<'b>
impl<'b> UnwindSafe for AllocationCallbacksBuilder<'b>
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