Skip to content

Commit

Permalink
add: Make Table and Column clonable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Sep 24, 2024
1 parent 06d24ad commit f6c7d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::style::{CellAlignment, ColumnConstraint};
/// // Align content in all cells of this column to the center of the cell.
/// column.set_cell_alignment(CellAlignment::Center);
/// ```
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Column {
/// The index of the column
pub index: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::utils::build_table;
///
/// There also exists a representation of a [Column].
/// Columns are automatically created when adding rows to a table.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Table {
pub(crate) columns: Vec<Column>,
style: HashMap<TableComponent, char>,
Expand Down

0 comments on commit f6c7d24

Please sign in to comment.