(&self)
| 56 | } |
| 57 | |
| 58 | pub fn print(&self) -> io::Result<()> { |
| 59 | let stdout = io::stdout(); |
| 60 | let mut stdout = stdout.lock(); |
| 61 | for line in self.render_lines() { |
| 62 | writeln!(stdout, "{line}")?; |
| 63 | } |
| 64 | Ok(()) |
| 65 | } |
| 66 | |
| 67 | fn render_lines(&self) -> Vec<String> { |
| 68 | let widths = self.column_widths(); |
no test coverage detected