pub struct AllocationCallbacksBuilder<'a> { /* private fields */ }Expand description
Builder for AllocationCallbacks.
Implementations§
Source§impl<'a> AllocationCallbacksBuilder<'a>
impl<'a> AllocationCallbacksBuilder<'a>
pub fn user_data(self, value: *mut c_void) -> AllocationCallbacksBuilder<'a>
pub fn pfn_allocation( self, value: Option<unsafe extern "system" fn(*mut c_void, usize, usize, SystemAllocationScope) -> *mut c_void>, ) -> AllocationCallbacksBuilder<'a>
pub fn pfn_reallocation( self, value: Option<unsafe extern "system" fn(*mut c_void, *mut c_void, usize, usize, SystemAllocationScope) -> *mut c_void>, ) -> AllocationCallbacksBuilder<'a>
pub fn pfn_free( self, value: Option<unsafe extern "system" fn(*mut c_void, *mut c_void)>, ) -> AllocationCallbacksBuilder<'a>
pub fn pfn_internal_allocation( self, value: Option<unsafe extern "system" fn(*mut c_void, usize, InternalAllocationType, SystemAllocationScope)>, ) -> AllocationCallbacksBuilder<'a>
pub fn pfn_internal_free( self, value: Option<unsafe extern "system" fn(*mut c_void, usize, InternalAllocationType, SystemAllocationScope)>, ) -> AllocationCallbacksBuilder<'a>
Trait Implementations§
Source§impl<'a> Deref for AllocationCallbacksBuilder<'a>
impl<'a> Deref for AllocationCallbacksBuilder<'a>
Source§type Target = AllocationCallbacks
type Target = AllocationCallbacks
The resulting type after dereferencing.
Source§impl<'a> DerefMut for AllocationCallbacksBuilder<'a>
impl<'a> DerefMut for AllocationCallbacksBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for AllocationCallbacksBuilder<'a>
impl<'a> RefUnwindSafe for AllocationCallbacksBuilder<'a>
impl<'a> !Send for AllocationCallbacksBuilder<'a>
impl<'a> !Sync for AllocationCallbacksBuilder<'a>
impl<'a> Unpin for AllocationCallbacksBuilder<'a>
impl<'a> UnsafeUnpin for AllocationCallbacksBuilder<'a>
impl<'a> UnwindSafe for AllocationCallbacksBuilder<'a>
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