Trait Entriable
Source pub trait Entriable: IndexMut<usize, Output = Self::T> {
type T;
// Required methods
fn len(&self) -> usize;
fn insert(&mut self, index: usize, value: Self::T);
fn remove(&mut self, index: usize) -> Self::T;
}
Returns the number of elements in the container.
Inserts an element at index
within the container, shifting all elements
with indices greater than or equal to index
towards the back.
Element at index 0 is the front.
§Panics
Panics if index
is greater than container’s length
Removes and returns the element at index
from the container, shifting
all elements with indices greater than or equal to index
towards the
front.
Element at index 0 is the front of the container.
§Panics
Panics if index
is out of bounds.