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: isizeinfo: *mut c_voidretain: 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
sourceimpl Clone for CFAllocatorContext
impl Clone for CFAllocatorContext
sourcepub fn clone(&self) -> CFAllocatorContext
pub 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 more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more