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 more