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>;
// Provided methods
fn row_selection(&self) -> Option<&RowSelectionState> { ... }
fn row_selection_mut(&mut self) -> Option<&mut RowSelectionState> { ... }
}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>
Provided Methods§
fn row_selection(&self) -> Option<&RowSelectionState>
fn row_selection_mut(&mut self) -> Option<&mut RowSelectionState>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".