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 moreimpl Copy for CFAllocatorContext
Auto Trait Implementations§
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