Struct tablestream::Stream[][src]

pub struct Stream<T, Out: Write> { /* fields omitted */ }
Expand description

Allows printing rows of data to some io::Write.

Implementations

Create a new table streamer.

Enable right/left borders? (default: false)

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.

  1. If we .finish() before the buffer is full, and determine that the table can be rendered smaller, then we will do so. (grow=false)
  2. 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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.