pub struct CFCharacterSet(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFCharacterSet reference.
Implementations§
Source§impl CFCharacterSet
impl CFCharacterSet
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFCharacterSet 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 CFCharacterSet pointer and wraps the resulting +1 reference.
§Safety
ptr must be NULL or a valid CFCharacterSet 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§
Source§impl AsCFType for CFCharacterSet
impl AsCFType for CFCharacterSet
Source§impl Clone for CFCharacterSet
impl Clone for CFCharacterSet
Source§fn clone(&self) -> CFCharacterSet
fn clone(&self) -> CFCharacterSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CFCharacterSet
impl Debug for CFCharacterSet
Source§impl Hash for CFCharacterSet
impl Hash for CFCharacterSet
Source§impl PartialEq for CFCharacterSet
impl PartialEq for CFCharacterSet
Source§fn eq(&self, other: &CFCharacterSet) -> bool
fn eq(&self, other: &CFCharacterSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CFCharacterSet
impl StructuralPartialEq for CFCharacterSet
Auto Trait Implementations§
impl Freeze for CFCharacterSet
impl RefUnwindSafe for CFCharacterSet
impl !Send for CFCharacterSet
impl !Sync for CFCharacterSet
impl Unpin for CFCharacterSet
impl UnsafeUnpin for CFCharacterSet
impl UnwindSafe for CFCharacterSet
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