pub struct NSMutableArray<T, O = Owned> { /* private fields */ }
Trait Implementations§
Source§impl<T, O> INSArray for NSMutableArray<T, O>
impl<T, O> INSArray for NSMutableArray<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 NSMutableArray<T, O>
impl<T, O> INSFastEnumeration for NSMutableArray<T, O>
type Item = T
fn enumerator(&self) -> NSFastEnumerator<'_, Self> ⓘ
Source§impl<T, O> INSMutableArray for NSMutableArray<T, O>
impl<T, O> INSMutableArray for NSMutableArray<T, O>
fn add_object(&mut self, obj: Id<Self::Item, Self::Own>)
fn insert_object_at(&mut self, index: usize, obj: Id<Self::Item, Self::Own>)
fn replace_object_at( &mut self, index: usize, obj: Id<Self::Item, Self::Own>, ) -> Id<Self::Item, Self::Own>
fn remove_object_at(&mut self, index: usize) -> Id<Self::Item, Self::Own>
fn remove_last_object(&mut self) -> Id<Self::Item, Self::Own>
fn remove_all_objects(&mut self)
fn sort_by<F>(&mut self, compare: F)
type Output = NSMutableArray<T, Shared>
fn mutable_copy(&self) -> Id<Self::Output>
Source§impl<T, O> INSObject for NSMutableArray<T, O>
impl<T, O> INSObject for NSMutableArray<T, O>
Source§impl<T, O> Index<usize> for NSMutableArray<T, O>
impl<T, O> Index<usize> for NSMutableArray<T, O>
Source§impl<T, O> Message for NSMutableArray<T, O>
impl<T, O> Message for NSMutableArray<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 NSMutableArray<T, O>
impl<T, O> RefUnwindSafe for NSMutableArray<T, O>where
T: RefUnwindSafe,
O: RefUnwindSafe,
impl<T, O = Owned> !Send for NSMutableArray<T, O>
impl<T, O> Sync for NSMutableArray<T, O>where
T: Sync,
impl<T, O> Unpin for NSMutableArray<T, O>
impl<T, O> UnwindSafe for NSMutableArray<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