Vector

Trait Vector 

Source
pub trait Vector<T>: Deref<Target = [T]> + DerefMut<Target = [T]> {
    // Required methods
    fn push(&mut self, item: T);
    fn pop(&mut self) -> Option<T>;
    fn truncate(&mut self, len: usize);
    fn remove_range<R: RangeBounds<usize>>(&mut self, range: R);
}

Required Methods§

Source

fn push(&mut self, item: T)

Source

fn pop(&mut self) -> Option<T>

Source

fn truncate(&mut self, len: usize)

Source

fn remove_range<R: RangeBounds<usize>>(&mut self, range: R)

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> Vector<T> for StdVector<T>

Available on crate feature std only.