Skip to content

Commit

Permalink
add Clone, Copy to tabled::settings::object::Cell and to `paper…
Browse files Browse the repository at this point in the history
…grid` `Position` (#406)
  • Loading branch information
Alexdelia authored Jun 12, 2024
1 parent e87ce94 commit bc92ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions papergrid/src/config/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
/// │ 1 │ 2 │
/// └───┴───┘
/// ```
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord)]
pub type Position = (usize, usize);
2 changes: 1 addition & 1 deletion tabled/src/settings/object/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{
/// ```
///
/// [`Table`]: crate::Table
#[derive(Debug, Default, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord)]
pub struct Cell(usize, usize);

impl Cell {
Expand Down

0 comments on commit bc92ae4

Please sign in to comment.