Add a row to the table. # Arguments `row` - The row data # Returns Self for method chaining. # Example ```rust,ignore table.add_row(vec!["main", "ABC123", "42"]); ```
(&mut self, row: I)
| 376 | /// table.add_row(vec!["main", "ABC123", "42"]); |
| 377 | /// ``` |
| 378 | pub fn add_row<I, S>(&mut self, row: I) -> &mut Self |
| 379 | where |
| 380 | I: IntoIterator<Item = S>, |
| 381 | S: Into<String>, |
| 382 | { |
| 383 | self.rows.push(Row::from_vec(row)); |
| 384 | self |
| 385 | } |
| 386 | |
| 387 | /// Calculate the width for each column. |
| 388 | /// |