Struct core_foundation::base::CFAllocatorContext
source · pub struct CFAllocatorContext {
pub version: i32,
pub info: *mut c_void,
pub retain: extern "C" fn(_: *mut c_void) -> *mut c_void,
pub release: extern "C" fn(_: *mut c_void),
pub copyDescription: extern "C" fn(_: *mut c_void) -> *const __CFString,
pub allocate: extern "C" fn(_: i32, _: u32, _: *mut c_void) -> *mut c_void,
pub reallocate: extern "C" fn(_: *mut c_void, _: i32, _: u32, _: *mut c_void) -> *mut c_void,
pub deallocate: extern "C" fn(_: *mut c_void, _: *mut c_void),
pub preferredSize: extern "C" fn(_: i32, _: u32, _: *mut c_void) -> i32,
}Fields
version: i32info: *mut c_voidretain: extern "C" fn(_: *mut c_void) -> *mut c_voidrelease: extern "C" fn(_: *mut c_void)copyDescription: extern "C" fn(_: *mut c_void) -> *const __CFStringallocate: extern "C" fn(_: i32, _: u32, _: *mut c_void) -> *mut c_voidreallocate: extern "C" fn(_: *mut c_void, _: i32, _: u32, _: *mut c_void) -> *mut c_voiddeallocate: extern "C" fn(_: *mut c_void, _: *mut c_void)preferredSize: extern "C" fn(_: i32, _: u32, _: *mut c_void) -> i32Trait Implementations
sourceimpl Clone for CFAllocatorContext
impl Clone for CFAllocatorContext
sourcefn clone(&self) -> CFAllocatorContext
fn clone(&self) -> CFAllocatorContext
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more