INNER CODE UNIT · Rust
write_header
jhspetersson/fselect · src/output/mod.rs:37
pub fn write_header(&mut self, raw_query: &str, col_count: usize, writer: &mut dyn Write) -> std::io::Result<()> {
self.formatter
.header(raw_query, col_count)
.map_or(Ok(()), |value| write!(writer, "{}", value))
}
pub fn write_row_separator(&mut self, writer: &mut dyn Write) -> std::io::Result<()> {
self.formatter
.row_separator()
.map_or(Ok(()), |value| write!(writer, "{}", value))
}
pub fn write_row(
&mut self,
writer: &mut dyn Write,
values: Vec<(String, String)>,
) -> std::io::Result<()> {
self.write_row_start(writer)?;