aboutsummaryrefslogtreecommitdiff
path: root/src/grid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid.rs')
-rw-r--r--src/grid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grid.rs b/src/grid.rs
index 7acfeaa3..1bcc91ce 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -29,7 +29,7 @@ use std::slice::{self, Iter, IterMut};
use index::{self, Cursor};
/// Represents the terminal display contents
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
pub struct Grid<T> {
/// Lines in the grid. Each row holds a list of cells corresponding to the
/// columns in that row.
@@ -221,7 +221,7 @@ impl<'cursor, T> IndexMut<&'cursor Cursor> for Grid<T> {
}
/// A row in the grid
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct Row<T>(Vec<T>);
impl<T: Clone> Row<T> {