Add a row to the table. # Arguments `row` - The row to add
(&mut self, row: Vec<String>)
| 39 | /// |
| 40 | /// * `row` - The row to add |
| 41 | pub fn add_row(&mut self, row: Vec<String>) { |
| 42 | for (i, column) in row.iter().enumerate() { |
| 43 | if column.len() > self.column_widths[i] { |
| 44 | self.column_widths[i] = column.len(); |
| 45 | } |
| 46 | } |
| 47 | self.rows.push(row); |
| 48 | } |
| 49 | |
| 50 | /// Print the table to the console. |
| 51 | /// |
no outgoing calls
no test coverage detected