Guide API
Skip to main content

stretch

Function stretch 

Source
pub fn stretch(cols: &[ColumnSpec], widths: &mut [i32], spare: i32)
Expand description

Give spare cells to the visible, non-zero-width flex columns: each gets spare * weight / total_weight (rounded down), and the cells the rounding leaves over go one each to the leftmost flex columns. Without a flex column nothing changes.