pub struct CFBundle(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFBundle reference.
Implementations§
Source§impl CFBundle
impl CFBundle
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFBundle 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 CFBundle pointer and wraps the resulting +1 reference.
§Safety
ptr must be NULL or a valid CFBundle pointer.
Sourcepub fn into_cf_type(self) -> CFType
pub fn into_cf_type(self) -> CFType
Consumes this wrapper and returns the erased CFType.
Source§impl CFBundle
impl CFBundle
Sourcepub fn identifier(&self) -> Option<CFString>
pub fn identifier(&self) -> Option<CFString>
Bundle identifier, if present.
Sourcepub fn bundle_url(&self) -> CFURL
pub fn bundle_url(&self) -> CFURL
Bundle URL.
Trait Implementations§
impl Eq for CFBundle
impl StructuralPartialEq for CFBundle
Auto Trait Implementations§
impl Freeze for CFBundle
impl RefUnwindSafe for CFBundle
impl !Send for CFBundle
impl !Sync for CFBundle
impl Unpin for CFBundle
impl UnsafeUnpin for CFBundle
impl UnwindSafe for CFBundle
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