pub struct Enumerator<T> { /* private fields */ }Expand description
An enumerator for a collection.
C++ equivalent: NS::Enumerator<_ObjectType>
Implementations§
Source§impl<T> Enumerator<T>
impl<T> Enumerator<T>
Sourcepub fn next_object(&self) -> *mut T
pub fn next_object(&self) -> *mut T
Get the next object in the enumeration.
C++ equivalent: _ObjectType* nextObject()
Sourcepub fn all_objects(&self) -> *mut c_void
pub fn all_objects(&self) -> *mut c_void
Get all remaining objects as an array.
C++ equivalent: class Array* allObjects()
Trait Implementations§
Source§impl<T> Clone for Enumerator<T>
impl<T> Clone for Enumerator<T>
Source§impl<T> Debug for Enumerator<T>
impl<T> Debug for Enumerator<T>
Source§impl<T> Referencing for Enumerator<T>
impl<T> Referencing for Enumerator<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 Enumerator<T>
impl<T: Sync> Sync for Enumerator<T>
Auto Trait Implementations§
impl<T> Freeze for Enumerator<T>
impl<T> RefUnwindSafe for Enumerator<T>where
T: RefUnwindSafe,
impl<T> Unpin for Enumerator<T>where
T: Unpin,
impl<T> UnwindSafe for Enumerator<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