pub fn rows<'a>(
lines: impl Iterator<Item = &'a str>,
width: usize,
wrap: bool,
) -> Vec<Row>Expand description
Lays out lines into the rows that show them, breaking anything wider
than width at the last space that fits, or mid-word for a word too long
to ever fit.
With wrap off every line becomes a single row of its full length, which
a frontend then scrolls horizontally.