Struct term_table::row::Row [−][src]
A set of table cells
Fields
cells: Vec<Cell<'data>>
Methods
impl<'data> Row<'data>[src]
impl<'data> Row<'data>pub fn new<T>(cells: Vec<T>) -> Row<'data> where
T: Into<Cell<'data>>, [src]
pub fn new<T>(cells: Vec<T>) -> Row<'data> where
T: Into<Cell<'data>>, pub fn format(&self, max_widths: &Vec<usize>, style: &TableStyle) -> String[src]
pub fn format(&self, max_widths: &Vec<usize>, style: &TableStyle) -> StringFormats a row based on the provided table style
pub fn gen_separator(
&self,
max_widths: &Vec<usize>,
style: &TableStyle,
row_position: RowPosition,
previous_separator: Option<String>
) -> String[src]
pub fn gen_separator(
&self,
max_widths: &Vec<usize>,
style: &TableStyle,
row_position: RowPosition,
previous_separator: Option<String>
) -> StringGenerates the top separator for a row.
The previous seperator is used to determine junction characters
pub fn split_column_widths(&self) -> Vec<(f32, usize)>[src]
pub fn split_column_widths(&self) -> Vec<(f32, usize)>Returns a vector of split cell widths.
A split width is the cell's total width divided by it's col_span value.
Each cell's split width value is pushed into the resulting vector col_span times. Returns a vec of tuples containing the cell width and the min cell width
pub fn num_columns(&self) -> usize[src]
pub fn num_columns(&self) -> usizeNumber of columns in the row.
This is the sum of all cell's col_span values