pub struct CFUUID(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFUUID reference.
Implementations§
Source§impl CFUUID
impl CFUUID
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFUUID 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 CFUUID pointer and wraps the resulting +1 reference.
§Safety
ptr must be NULL or a valid CFUUID 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 CFUUID
impl StructuralPartialEq for CFUUID
Auto Trait Implementations§
impl Freeze for CFUUID
impl RefUnwindSafe for CFUUID
impl !Send for CFUUID
impl !Sync for CFUUID
impl Unpin for CFUUID
impl UnsafeUnpin for CFUUID
impl UnwindSafe for CFUUID
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