pub trait Vector<T> {
// Required methods
fn clear(&mut self);
fn len(&self) -> usize;
fn push(&mut self, value: T);
fn slice(&self) -> &[T];
fn slice_mut(&mut self) -> &mut [T];
}
Expand description
This trait abstracts away a vector implementation.
It is useful for supporting other vectors as tree’s backing storage, such as SmallVec and Bumpalo’s Vec.