Struct term_table::Table[][src]

pub struct Table<'data> {
    pub rows: Vec<Row<'data>>,
    pub style: TableStyle,
    pub max_column_width: usize,
    pub max_column_widths: HashMap<usize, usize>,
}

A set of rows containing data

Fields

The maximum width of all columns. Overriden by values in column_widths. Defults to std::usize::max

The maxium widths of specific columns. Override max_column

Methods

impl<'data> Table<'data>
[src]

Set the max width of a paticular column

Set the max widths of specific columns

Simply adds a row to the rows Vec

Does all of the calculations to reformat the row based on it's current state and returns the result as a String

Auto Trait Implementations

impl<'data> Send for Table<'data>

impl<'data> Sync for Table<'data>