pub trait Array {
// Required methods
fn index_at(&self, rhs: &Self) -> Self;
fn len(&self) -> Primitive;
fn is_empty(&self) -> Primitive;
fn swap_mem(&mut self, rhs: &mut Self, index: &Primitive) -> Self;
fn remove(&mut self, key: &Self) -> Result<()>;
}
Required Methods§
fn index_at(&self, rhs: &Self) -> Self
fn len(&self) -> Primitive
fn is_empty(&self) -> Primitive
fn swap_mem(&mut self, rhs: &mut Self, index: &Primitive) -> Self
fn remove(&mut self, key: &Self) -> Result<()>
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.