Struct term_table::Table
[−]
[src]
pub struct Table<'data> {
pub rows: Vec<Row<'data>>,
pub style: TableStyle,
pub max_column_width: usize,
}A set of rows containing data
Fields
rows: Vec<Row<'data>>
style: TableStyle
max_column_width: usize
The maxium width of each column. Defults to std::usize::max
Methods
impl<'data> Table<'data>[src]
pub fn new() -> Table<'data>[src]
pub fn add_row(&mut self, row: Row<'data>)[src]
Simply adds a row to the rows Vec
pub fn as_string(&mut self) -> String[src]
Does all of the calculations to reformat the row based on it's current
state and returns the result as a String