Skip to main content

render_row

Function render_row 

Source
pub fn render_row(cells: &[Cell], width: usize) -> Vec<(ContentStyle, String)>
Expand description

Convert a row of cells into a sequence of styled text spans.

Adjacent cells with the same style are coalesced into a single span. Wide-char continuation cells (width == 0) are skipped. The output is padded with spaces to exactly width columns.