objc_foundation

Trait INSMutableArray

Source
pub trait INSMutableArray: INSArray {
    // Provided methods
    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)
       where F: FnMut(&Self::Item, &Self::Item) -> Ordering { ... }
}

Provided Methods§

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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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