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