pub struct CFType(/* private fields */);Expand description
Owned, type-erased CFTypeRef.
Implementations§
Source§impl CFType
impl CFType
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFTypeRef 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 CFTypeRef and wraps the resulting +1 reference.
§Safety
ptr must be either NULL or a valid CFTypeRef.
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Human-readable Core Foundation description.
Trait Implementations§
impl Eq for CFType
Auto Trait Implementations§
impl Freeze for CFType
impl RefUnwindSafe for CFType
impl !Send for CFType
impl !Sync for CFType
impl Unpin for CFType
impl UnsafeUnpin for CFType
impl UnwindSafe for CFType
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