Trait collection::VectorOps [] [src]

pub trait VectorOps<T, M> where Self: Sized, T: Val, M: Meta<T> {
    fn insert(&mut self, i: usize, t: T);
    fn remove(&mut self, i: usize) -> Option<T>;
    fn get(&self, i: usize) -> Option<&T>;
    fn get_mut(&mut self, i: usize) -> Option<MutContext<T, M, Beginning>>;
    fn push(&mut self, t: T);
    fn pop(&mut self) -> Option<T>;
    fn split(&mut self, i: usize) -> (Self, Self);
    fn concat(&mut self, b: &mut Self) -> Self;
    fn splice(&mut self, i: usize, from: &mut Self) -> Self;
}

Vector Operations on a Collection

Required Methods

Insert element at index i

Remove element from index i

Get a reference to element at index i

Get a mutable reference to element at index i

Push element to end of vector

Pop from the end of the vector

Split the vector in two at index i

Concatenate two vectors

Splice in a vector at index i

Implementors