write_table_fallible

Function write_table_fallible 

Source
pub fn write_table_fallible<Cell: Display, Row: IntoIterator<Item = Cell>, IteratorError, const COLUMN_COUNT: usize>(
    to: impl Write,
    iter: impl FallibleIterator<Item = Row, Error = IteratorError>,
    column_names: &[&str; COLUMN_COUNT],
    column_widths: &[NonZeroUsize; COLUMN_COUNT],
) -> Result<(), FallibleIteratorTableWriteError<IteratorError>>
Available on crate feature fallible-iterator only.
Expand description

Render a table from a fallible iterator.

It differs from write_table in that iter is a FallibleIterator from the fallible-iterator crate.

ยงErrors

If an I/O error is encountered while writing to the to writer, FallibleIteratorTableWriteError::Io is returned. If the iterator produces an error when getting the next row, FallibleIteratorTableWriteError::Iterator is returned.