objc_foundation

Struct NSMutableArray

Source
pub struct NSMutableArray<T, O = Owned> { /* private fields */ }

Trait Implementations§

Source§

impl<T, O> INSArray for NSMutableArray<T, O>
where T: INSObject, O: Ownership,

Source§

type Item = T

Source§

type Own = O

Source§

fn count(&self) -> usize

Source§

fn object_at(&self, index: usize) -> &Self::Item

Source§

fn first_object(&self) -> Option<&Self::Item>

Source§

fn last_object(&self) -> Option<&Self::Item>

Source§

fn object_enumerator(&self) -> NSEnumerator<'_, Self::Item>

Source§

fn from_vec(vec: Vec<Id<Self::Item, Self::Own>>) -> Id<Self>

Source§

fn objects_in_range(&self, range: Range<usize>) -> Vec<&Self::Item>

Source§

fn to_vec(&self) -> Vec<&Self::Item>

Source§

fn into_vec(array: Id<Self>) -> Vec<Id<Self::Item, Self::Own>>

Source§

fn mut_object_at(&mut self, index: usize) -> &mut Self::Item
where Self: INSArray<Own = Owned>,

Source§

fn shared_object_at(&self, index: usize) -> ShareId<Self::Item>
where Self: INSArray<Own = Shared>,

Source§

fn from_slice(slice: &[ShareId<Self::Item>]) -> Id<Self>
where Self: INSArray<Own = Shared>,

Source§

fn to_shared_vec(&self) -> Vec<ShareId<Self::Item>>
where Self: INSArray<Own = Shared>,

Source§

impl<T> INSCopying for NSMutableArray<T, Shared>
where T: INSObject,

Source§

type Output = NSArray<T, Shared>

Source§

fn copy(&self) -> ShareId<Self::Output>

Source§

impl<T, O> INSFastEnumeration for NSMutableArray<T, O>
where T: INSObject, O: Ownership,

Source§

type Item = T

Source§

fn enumerator(&self) -> NSFastEnumerator<'_, Self>

Source§

impl<T, O> INSMutableArray for NSMutableArray<T, O>
where T: INSObject, O: Ownership,

Source§

fn add_object(&mut self, obj: Id<Self::Item, Self::Own>)

Source§

fn insert_object_at(&mut self, index: usize, obj: Id<Self::Item, Self::Own>)

Source§

fn replace_object_at( &mut self, index: usize, obj: Id<Self::Item, Self::Own>, ) -> Id<Self::Item, Self::Own>

Source§

fn remove_object_at(&mut self, index: usize) -> Id<Self::Item, Self::Own>

Source§

fn remove_last_object(&mut self) -> Id<Self::Item, Self::Own>

Source§

fn remove_all_objects(&mut self)

Source§

fn sort_by<F>(&mut self, compare: F)
where F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Source§

impl<T> INSMutableCopying for NSMutableArray<T, Shared>
where T: INSObject,

Source§

impl<T, O> INSObject for NSMutableArray<T, O>
where T: INSObject, O: Ownership,

Source§

fn class() -> &'static Class

Source§

fn hash_code(&self) -> usize

Source§

fn is_equal<T>(&self, other: &T) -> bool
where T: INSObject,

Source§

fn description(&self) -> ShareId<NSString>

Source§

fn is_kind_of(&self, cls: &Class) -> bool

Source§

fn new() -> Id<Self>

Source§

impl<T, O> Index<usize> for NSMutableArray<T, O>
where T: INSObject, O: Ownership,

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &T

Performs the indexing (container[index]) operation. Read more
Source§

impl<T, O> Message for NSMutableArray<T, O>

Source§

unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
where Self: Sized, A: MessageArguments, R: Any,

Sends a message to self with the given selector and arguments. Read more
Source§

fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
where Self: Sized, A: EncodeArguments, R: Encode,

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>

§

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>
where T: Unpin, O: Unpin,

§

impl<T, O> UnwindSafe for NSMutableArray<T, O>
where T: UnwindSafe, O: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.