pub trait Container<T: Clone + TryFrom<Datum>> {
// Required methods
fn get_slices(&self) -> Vec<(usize, &[T])>;
fn get(&self, ix: usize) -> Option<T>;
fn insert_overwrite(&mut self, ix: usize, x: T);
fn push(&mut self, xopt: Option<T>);
fn present_cloned(&self) -> Vec<T>;
fn remove(&mut self, ix: usize) -> Option<T>;
// Provided methods
fn upsize(&mut self, n: usize) { ... }
fn push_datum(&mut self, x: Datum) { ... }
fn insert_datum(&mut self, row_ix: usize, x: Datum) { ... }
}Expand description
A data container
Required Methods§
Sourcefn get_slices(&self) -> Vec<(usize, &[T])>
fn get_slices(&self) -> Vec<(usize, &[T])>
get the data slices and the start indices
Sourcefn insert_overwrite(&mut self, ix: usize, x: T)
fn insert_overwrite(&mut self, ix: usize, x: T)
Insert or overwrite an entry at ix
Sourcefn present_cloned(&self) -> Vec<T>
fn present_cloned(&self) -> Vec<T>
Get as cloned vector containing only the present data