Struct core_foundation::base::CFAllocatorContext
source · pub struct CFAllocatorContext {
pub version: i64,
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(_: i64, _: u32, _: *mut c_void) -> *mut c_void,
pub reallocate: extern "C" fn(_: *mut c_void, _: i64, _: u32, _: *mut c_void) -> *mut c_void,
pub deallocate: extern "C" fn(_: *mut c_void, _: *mut c_void),
pub preferredSize: extern "C" fn(_: i64, _: u32, _: *mut c_void) -> i64,
}
Fields
version: i64
info: *mut c_void
retain: extern "C" fn(_: *mut c_void) -> *mut c_void
release: extern "C" fn(_: *mut c_void)
copyDescription: extern "C" fn(_: *mut c_void) -> *const __CFString
allocate: extern "C" fn(_: i64, _: u32, _: *mut c_void) -> *mut c_void
reallocate: extern "C" fn(_: *mut c_void, _: i64, _: u32, _: *mut c_void) -> *mut c_void
deallocate: extern "C" fn(_: *mut c_void, _: *mut c_void)
preferredSize: extern "C" fn(_: i64, _: u32, _: *mut c_void) -> i64
Trait 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