Struct core_foundation_sys::base::CFAllocatorContext
source · #[repr(C)]pub struct CFAllocatorContext {
pub version: CFIndex,
pub info: *mut c_void,
pub retain: Option<CFAllocatorRetainCallBack>,
pub release: Option<CFAllocatorReleaseCallBack>,
pub copyDescription: Option<CFAllocatorCopyDescriptionCallBack>,
pub allocate: Option<CFAllocatorAllocateCallBack>,
pub reallocate: Option<CFAllocatorReallocateCallBack>,
pub deallocate: Option<CFAllocatorDeallocateCallBack>,
pub preferredSize: Option<CFAllocatorPreferredSizeCallBack>,
}
Fields§
§version: CFIndex
§info: *mut c_void
§retain: Option<CFAllocatorRetainCallBack>
§release: Option<CFAllocatorReleaseCallBack>
§copyDescription: Option<CFAllocatorCopyDescriptionCallBack>
§allocate: Option<CFAllocatorAllocateCallBack>
§reallocate: Option<CFAllocatorReallocateCallBack>
§deallocate: Option<CFAllocatorDeallocateCallBack>
§preferredSize: Option<CFAllocatorPreferredSizeCallBack>
Trait Implementations§
source§impl Clone for CFAllocatorContext
impl Clone for CFAllocatorContext
source§fn clone(&self) -> CFAllocatorContext
fn clone(&self) -> CFAllocatorContext
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 CFAllocatorContext
impl Debug for CFAllocatorContext
impl Copy for CFAllocatorContext
Auto Trait Implementations§
impl Freeze for CFAllocatorContext
impl RefUnwindSafe for CFAllocatorContext
impl !Send for CFAllocatorContext
impl !Sync for CFAllocatorContext
impl Unpin for CFAllocatorContext
impl UnwindSafe for CFAllocatorContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)