pub trait TableDataModel<C>{
type Iterator<'i>: Iterator<Item = (Self::Key, &'i Self::Item)>
where Self: 'i;
type Item: TableEntryRenderer<C> + Clone + 'static;
type Key: Into<Key> + Clone + Debug + Eq + 'static;
// Required methods
fn len(&self) -> usize;
fn contains(&self, key: &Self::Key) -> bool;
fn iter(&self) -> Self::Iterator<'_>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Required Associated Types§
type Iterator<'i>: Iterator<Item = (Self::Key, &'i Self::Item)> 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.