pub struct Set<T = Object> { /* private fields */ }Expand description
An Objective-C set object.
C++ equivalent: NS::Set
Implementations§
Source§impl<T> Set<T>
impl<T> Set<T>
Sourcepub fn count(&self) -> UInteger
pub fn count(&self) -> UInteger
Get the count of objects in the set.
C++ equivalent: UInteger count() const
Sourcepub fn object_enumerator(&self) -> Option<Enumerator<T>>
pub fn object_enumerator(&self) -> Option<Enumerator<T>>
Get an enumerator for the objects in the set.
C++ equivalent: Enumerator<Object>* objectEnumerator() const
Sourcepub fn init_with_objects(
&self,
objects: *const *const T,
count: UInteger,
) -> Option<Self>
pub fn init_with_objects( &self, objects: *const *const T, count: UInteger, ) -> Option<Self>
Initialize with multiple objects.
C++ equivalent: Set* init(const Object* const* pObjects, UInteger count)
Sourcepub fn init_with_coder(&self, coder: *const c_void) -> Option<Self>
pub fn init_with_coder(&self, coder: *const c_void) -> Option<Self>
Initialize with a coder.
C++ equivalent: Set* init(const class Coder* pCoder)
Trait Implementations§
Source§impl<T> Referencing for Set<T>
impl<T> Referencing for Set<T>
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> UInteger
fn retain_count(&self) -> UInteger
Get the retain count of the object. Read more
impl<T: Send> Send for Set<T>
impl<T: Sync> Sync for Set<T>
Auto Trait Implementations§
impl<T> Freeze for Set<T>
impl<T> RefUnwindSafe for Set<T>where
T: RefUnwindSafe,
impl<T> Unpin for Set<T>where
T: Unpin,
impl<T> UnwindSafe for Set<T>where
T: UnwindSafe,
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