Set the header row from simple string values. This creates columns with default settings from header strings.
(&mut self, headers: I)
| 314 | /// |
| 315 | /// This creates columns with default settings from header strings. |
| 316 | pub fn set_header<I, S>(&mut self, headers: I) -> &mut Self |
| 317 | where |
| 318 | I: IntoIterator<Item = S>, |
| 319 | S: Into<String>, |
| 320 | { |
| 321 | self.columns = headers.into_iter().map(|h| Column::new(h)).collect(); |
| 322 | self |
| 323 | } |
| 324 | |
| 325 | /// Set whether to show the header separator line. |
| 326 | pub fn show_header_separator(&mut self, show: bool) -> &mut Self { |