pub struct CFMutableSet(/* private fields */);Implementations§
Source§impl CFMutableSet
impl CFMutableSet
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Sourcepub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
Retain a borrowed pointer before wrapping it.
§Safety
ptr must be NULL or a valid pointer of the expected Core Foundation type.
pub const fn as_ptr(&self) -> *mut c_void
pub fn type_id() -> usize
pub fn into_cf_type(self) -> CFType
Source§impl CFMutableSet
impl CFMutableSet
Sourcepub fn with_callbacks(capacity: usize, callbacks: CFSetCallbacks) -> Self
pub fn with_callbacks(capacity: usize, callbacks: CFSetCallbacks) -> Self
Create an empty mutable set with explicit callback semantics.
Sourcepub fn from_values(values: &[&dyn AsCFType]) -> Self
pub fn from_values(values: &[&dyn AsCFType]) -> Self
Create a mutable set from borrowed Core Foundation values using type callbacks.
Sourcepub fn from_values_with_callbacks(
values: &[&dyn AsCFType],
callbacks: CFSetCallbacks,
) -> Self
pub fn from_values_with_callbacks( values: &[&dyn AsCFType], callbacks: CFSetCallbacks, ) -> Self
Create a mutable set from borrowed Core Foundation values with explicit callback semantics.
Sourcepub fn mutable_copy(&self, capacity: usize) -> Self
pub fn mutable_copy(&self, capacity: usize) -> Self
Create a mutable retained copy of this set.
Sourcepub fn count_of_value(&self, candidate: &dyn AsCFType) -> usize
pub fn count_of_value(&self, candidate: &dyn AsCFType) -> usize
Number of times candidate appears in the set (0 or 1).
Trait Implementations§
Source§impl AsCFType for CFMutableSet
impl AsCFType for CFMutableSet
Source§impl Clone for CFMutableSet
impl Clone for CFMutableSet
Source§fn clone(&self) -> CFMutableSet
fn clone(&self) -> CFMutableSet
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 CFMutableSet
impl Debug for CFMutableSet
Source§impl Default for CFMutableSet
impl Default for CFMutableSet
Source§impl Hash for CFMutableSet
impl Hash for CFMutableSet
Source§impl PartialEq for CFMutableSet
impl PartialEq for CFMutableSet
Source§fn eq(&self, other: &CFMutableSet) -> bool
fn eq(&self, other: &CFMutableSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CFMutableSet
impl StructuralPartialEq for CFMutableSet
Auto Trait Implementations§
impl Freeze for CFMutableSet
impl RefUnwindSafe for CFMutableSet
impl !Send for CFMutableSet
impl !Sync for CFMutableSet
impl Unpin for CFMutableSet
impl UnsafeUnpin for CFMutableSet
impl UnwindSafe for CFMutableSet
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