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§
fn table_name(&self) -> Cow<'_, str>
Sourcefn table_view_header(
&self,
) -> Box<dyn AsRef<[(Cow<'static, str>, Unit, ColumnFormatting)]>>
fn table_view_header( &self, ) -> Box<dyn AsRef<[(Cow<'static, str>, Unit, ColumnFormatting)]>>
Column names and unit.