pub trait DeferredTableDataSource {
// Required method
fn get_dimensions(&self) -> TableDimensions;
// Provided methods
fn prepare(&mut self) { ... }
fn finalize(&mut self) { ... }
fn rows_to_filter(&self) -> Option<&[usize]> { ... }
fn columns_to_filter(&self) -> Option<&[usize]> { ... }
fn row_ordering(&self) -> Option<&[usize]> { ... }
fn column_ordering(&self) -> Option<&[usize]> { ... }
}Required Methods§
fn get_dimensions(&self) -> TableDimensions
Provided Methods§
Sourcefn rows_to_filter(&self) -> Option<&[usize]>
fn rows_to_filter(&self) -> Option<&[usize]>
return a list of rows indexes to filter/exclude.
Sourcefn columns_to_filter(&self) -> Option<&[usize]>
fn columns_to_filter(&self) -> Option<&[usize]>
return a list of column indexes to filter/exclude.
Sourcefn row_ordering(&self) -> Option<&[usize]>
fn row_ordering(&self) -> Option<&[usize]>
return a list of row indexes to set the ordering of rows
the index of the slice corresponds to the index of the visible row the value of the slace at the index corresponds to the index of the data
e.g. Some(vec![1,0]) would swap rows 0 and 1.
Sourcefn column_ordering(&self) -> Option<&[usize]>
fn column_ordering(&self) -> Option<&[usize]>
return a list of row indexes to set the ordering of columns
the index of the slice corresponds to the index of the visible column the value of the slace at the index corresponds to the index of the data
e.g. Some(vec![1,0]) would swap columns 0 and 1.