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§
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)
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.