pub struct NSArray<T, O = Owned> { /* private fields */ }
Trait Implementations§
Source§impl<T, O> INSArray for NSArray<T, O>
impl<T, O> INSArray for NSArray<T, O>
type Item = T
type Own = O
fn count(&self) -> usize
fn object_at(&self, index: usize) -> &Self::Item
fn first_object(&self) -> Option<&Self::Item>
fn last_object(&self) -> Option<&Self::Item>
fn object_enumerator(&self) -> NSEnumerator<'_, Self::Item> ⓘ
fn from_vec(vec: Vec<Id<Self::Item, Self::Own>>) -> Id<Self>
fn objects_in_range(&self, range: Range<usize>) -> Vec<&Self::Item>
fn to_vec(&self) -> Vec<&Self::Item>
fn into_vec(array: Id<Self>) -> Vec<Id<Self::Item, Self::Own>>
fn mut_object_at(&mut self, index: usize) -> &mut Self::Item
fn from_slice(slice: &[ShareId<Self::Item>]) -> Id<Self>
Source§impl<T, O> INSFastEnumeration for NSArray<T, O>
impl<T, O> INSFastEnumeration for NSArray<T, O>
type Item = T
fn enumerator(&self) -> NSFastEnumerator<'_, Self> ⓘ
type Output = NSMutableArray<T, Shared>
fn mutable_copy(&self) -> Id<Self::Output>
Source§impl<T, O> Message for NSArray<T, O>
impl<T, O> Message for NSArray<T, O>
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Auto Trait Implementations§
impl<T, O> Freeze for NSArray<T, O>
impl<T, O> RefUnwindSafe for NSArray<T, O>where
T: RefUnwindSafe,
O: RefUnwindSafe,
impl<T, O = Owned> !Send for NSArray<T, O>
impl<T, O> Sync for NSArray<T, O>where
T: Sync,
impl<T, O> Unpin for NSArray<T, O>
impl<T, O> UnwindSafe for NSArray<T, O>where
T: UnwindSafe,
O: 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