pub trait OrderedTableDelegate: TableDelegate {
type RowId: Clone + Eq;
// Required methods
fn ordering(&self) -> &SortOrder;
fn set_ordering(&mut self, ordering: SortOrder) -> Result<(), SortError>;
fn visible_row_id(&self, row_ix: usize) -> Option<Self::RowId>;
fn visible_row_position(&self, id: &Self::RowId) -> Option<usize>;
}Expand description
Ordering of the delegate’s loaded rows. Backend ordering remains caller-owned.
Required Associated Types§
Required Methods§
fn ordering(&self) -> &SortOrder
fn set_ordering(&mut self, ordering: SortOrder) -> Result<(), SortError>
fn visible_row_id(&self, row_ix: usize) -> Option<Self::RowId>
fn visible_row_position(&self, id: &Self::RowId) -> Option<usize>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".