Struct core_foundation::base::CFAllocatorContext
source · #[repr(C)]pub struct CFAllocatorContext {
pub version: isize,
pub info: *mut c_void,
pub retain: Option<extern "C" fn(_: *mut c_void) -> *mut c_void>,
pub release: Option<extern "C" fn(_: *mut c_void)>,
pub copyDescription: Option<extern "C" fn(_: *mut c_void) -> *const __CFString>,
pub allocate: Option<extern "C" fn(_: isize, _: usize, _: *mut c_void) -> *mut c_void>,
pub reallocate: Option<extern "C" fn(_: *mut c_void, _: isize, _: usize, _: *mut c_void) -> *mut c_void>,
pub deallocate: Option<extern "C" fn(_: *mut c_void, _: *mut c_void)>,
pub preferredSize: Option<extern "C" fn(_: isize, _: usize, _: *mut c_void) -> isize>,
}
Fields§
§version: isize
§info: *mut c_void
§retain: Option<extern "C" fn(_: *mut c_void) -> *mut c_void>
§release: Option<extern "C" fn(_: *mut c_void)>
§copyDescription: Option<extern "C" fn(_: *mut c_void) -> *const __CFString>
§allocate: Option<extern "C" fn(_: isize, _: usize, _: *mut c_void) -> *mut c_void>
§reallocate: Option<extern "C" fn(_: *mut c_void, _: isize, _: usize, _: *mut c_void) -> *mut c_void>
§deallocate: Option<extern "C" fn(_: *mut c_void, _: *mut c_void)>
§preferredSize: Option<extern "C" fn(_: isize, _: usize, _: *mut c_void) -> isize>
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 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