pub struct CFArray(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFArray reference.
Implementations§
Source§impl CFArray
impl CFArray
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFArray pointer and returns None for null.
Sourcepub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
Retains a +0 borrowed CFArray pointer and wraps the resulting +1 reference.
§Safety
ptr must be NULL or a valid CFArray pointer.
Sourcepub fn into_cf_type(self) -> CFType
pub fn into_cf_type(self) -> CFType
Consumes this wrapper and returns the erased CFType.
Trait Implementations§
impl Eq for CFArray
impl StructuralPartialEq for CFArray
Auto Trait Implementations§
impl Freeze for CFArray
impl RefUnwindSafe for CFArray
impl !Send for CFArray
impl !Sync for CFArray
impl Unpin for CFArray
impl UnsafeUnpin for CFArray
impl UnwindSafe for CFArray
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