pub trait TableModel: Debug + Default + PartialEq + Clone {
    type Item: TableRenderer;

    fn len(&self) -> usize;
    fn is_expanded(&self, index: usize) -> bool;
    fn set_expanded(&self, index: usize, state: bool) -> bool;
    fn map<F, R>(&self, f: F) -> Vec<R> 
    where
        F: Fn(&TableModelEntry<Self::Item>) -> R
; fn is_empty(&self) -> bool { ... } }
Expand description

A model providing data for a table.

Required Associated Types§

Required Methods§

Get the number of items

Test if the entry is expanded

Set the expanded state of the entry

Provided Methods§

Test if the table model is empty

Implementors§