Struct tablestream::Stream [−][src]
pub struct Stream<T, Out: Write> { /* fields omitted */ }
Expand description
Allows printing rows of data to some io::Write.
Implementations
Set the maximum width for the table. Note: this may be increased automatically for you if you’ve specified columns, borders, dividers, and paddings with sizes that require a larger max_width.
Enable horizontal padding around |
dividers and inside external borders. (default: true)
Should the table grow to fit its max_size?
Default behavior is determined by how much data we send to Stream.
- If we
.finish()
before the buffer is full, and determine that the table can be rendered smaller, then we will do so. (grow=false) - If we fill the buffer and begin streaming mode, we’ll grow the table so that there will be spare width later if we need it. (grow=true)
Set a table title, to be displayed centered above the table.
Print a single row. Note: Stream may buffer some rows before it begins output to calculate column sizes.
Finish writing output. This may write any items still in the buffer, as well as a trailing horizontal line and footer.
Like [finish
], but adds a footer at the end as well.