pub trait TableModel<C>{
type Iterator<'i>: Iterator<Item = TableModelEntry<'i, Self::Item, Self::Key, C>>
where Self: 'i;
type Item: TableEntryRenderer<C> + Clone + 'static;
type Key: Into<Key> + Clone + Debug + Eq + 'static;
// Required methods
fn len(&self) -> usize;
fn iter(&self) -> Self::Iterator<'_>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A model providing data for a table.
Required Associated Types§
type Iterator<'i>: Iterator<Item = TableModelEntry<'i, Self::Item, Self::Key, C>> where Self: 'i
type Item: TableEntryRenderer<C> + Clone + 'static
type Key: Into<Key> + Clone + Debug + Eq + 'static
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.