pub trait ListDataSource {
type ItemId: Copy + Eq;
// Required methods
fn item_count(&self) -> usize;
fn item_id(&self, index: usize) -> Self::ItemId;
fn item_height(&self, index: usize) -> u32;
}Expand description
Data source used by crate::ListView.
Required Associated Types§
Required Methods§
Sourcefn item_count(&self) -> usize
fn item_count(&self) -> usize
Returns the number of rows.
Sourcefn item_height(&self, index: usize) -> u32
fn item_height(&self, index: usize) -> u32
Returns the height for index.