Skip to main content

columns

Function columns 

Source
pub fn columns(
    w: usize,
    base: Style,
    cells: Vec<(u16, Vec<Span<'_>>)>,
) -> String
Expand description

One row laid out in fixed columns, each clipped to its own column.

The hand-rolled version did this with a cap/pad_to pair around every write, and the reason was worth keeping: an over-long span name has to eat into its own column rather than push the duration off the right-hand edge. A Layout states the same thing once, in the units the columns are in.