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>,
pub separate_rows: bool,
pub has_top_boarder: bool,
pub has_bottom_boarder: bool,
}
Expand description
A set of rows containing data
Fields
rows: Vec<Row<'data>>
style: TableStyle
max_column_width: usize
The maximum width of all columns. Overridden by values in column_widths. Defaults to std::usize::max
max_column_widths: HashMap<usize, usize>
The maximum widths of specific columns. Override max_column
separate_rows: bool
Whether or not to vertically separate rows in the table
has_top_boarder: bool
Whether the table should have a top boarder.
Setting has_separator
to false on the first row will have the same effect as setting this to false
has_bottom_boarder: bool
Whether the table should have a bottom boarder
Implementations
Set the max width of a particular column
Set the max widths of specific columns
Trait Implementations
Auto Trait Implementations
impl<'data> RefUnwindSafe for Table<'data>
impl<'data> UnwindSafe for Table<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more