Struct term_table::row::Row[][src]

pub struct Row<'data> {
    pub cells: Vec<TableCell<'data>>,
    pub has_separator: bool,
}
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

Formats a row based on the provided table style

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.