Trait Array

Source
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§

Source

fn index_at(&self, rhs: &Self) -> Self

Source

fn len(&self) -> Primitive

Source

fn is_empty(&self) -> Primitive

Source

fn swap_mem(&mut self, rhs: &mut Self, index: &Primitive) -> Self

Source

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.

Implementors§