Struct term_table::row::Row [−][src]
Expand description
A set of table cells
Fields
cells: Vec<TableCell<'data>>
has_separator: bool
Whether the row should have a top boarder or not
Implementations
pub fn new<I, T>(cells: I) -> Row<'data> where
T: Into<TableCell<'data>>,
I: IntoIterator<Item = T>,
Formats a row based on the provided table style
pub fn gen_separator(
&self,
column_widths: &[usize],
style: &TableStyle,
row_position: RowPosition,
previous_separator: Option<String>
) -> String
pub fn gen_separator(
&self,
column_widths: &[usize],
style: &TableStyle,
row_position: RowPosition,
previous_separator: Option<String>
) -> String
Generates the top separator for a row.
The previous seperator is used to determine junction characters
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
Number of columns in the row.
This is the sum of all cell’s col_span values
Trait Implementations
Auto Trait Implementations
impl<'data> RefUnwindSafe for Row<'data>
impl<'data> UnwindSafe for Row<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more