pub trait IsDataContainer<T> {
// Required methods
fn reserve_d(&mut self, n: usize);
fn len_d(&self) -> usize;
fn push_d(&mut self, x: T);
fn get_d(&self, index: usize) -> T;
fn set_d(&mut self, index: usize, x: T);
}
Expand description
IsDataContainer trait used for data containers allowing for different storage types than using the abstracted type