Trait TableView

Source
pub trait TableView {
    // Required methods
    fn table_name(&self) -> Cow<'_, str>;
    fn table_view_header(
        &self,
    ) -> Box<dyn AsRef<[(Cow<'static, str>, Unit, ColumnFormatting)]>>;
    fn table_view_body<'s>(
        &'s self,
    ) -> Box<dyn Iterator<Item = Cow<'s, [(Cow<'s, str>, Highlight)]>> + 's>;
}
Expand description

A full table. dyn compatible.

Required Methods§

Source

fn table_name(&self) -> Cow<'_, str>

Source

fn table_view_header( &self, ) -> Box<dyn AsRef<[(Cow<'static, str>, Unit, ColumnFormatting)]>>

Column names and unit.

Source

fn table_view_body<'s>( &'s self, ) -> Box<dyn Iterator<Item = Cow<'s, [(Cow<'s, str>, Highlight)]>> + 's>

Implementors§

Source§

impl<'key, K: TableKind, T: TableViewRow<()>> TableView for Table<'key, K, T>