| 262 | /// ``` |
| 263 | #[derive(Debug, Clone, Default)] |
| 264 | pub struct Table { |
| 265 | /// Column configurations |
| 266 | columns: Vec<Column>, |
| 267 | |
| 268 | /// Data rows (excluding header) |
| 269 | rows: Vec<Row>, |
| 270 | |
| 271 | /// Whether to show the header separator line |
| 272 | show_header_separator: bool, |
| 273 | |
| 274 | /// Column separator string |
| 275 | column_separator: String, |
| 276 | |
| 277 | /// Whether to use colors in output |
| 278 | #[allow(dead_code)] // set in constructor |
| 279 | use_colors: bool, |
| 280 | } |
| 281 | |
| 282 | impl Table { |
| 283 | /// Create a new empty table. |
no outgoing calls
no test coverage detected