pub fn write_table_with_fmt_fallible<Row, IteratorError, const COLUMN_COUNT: usize>(
to: impl Write,
iter: impl FallibleIterator<Item = Row, Error = IteratorError>,
formatters: &[impl Fn(&Row, &mut String) -> Result; COLUMN_COUNT],
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 using custom formatters.
It differs from write_table_with_fmt 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.