summaryrefslogtreecommitdiffstats
path: root/src/grid.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-12-09 03:27:01 -0500
committerJesse Luehrs <doy@tozt.net>2022-12-09 03:27:01 -0500
commit33a7618e7d02331edccec4841b08d6efe8272dff (patch)
treecd3321cd44028a1c1d363f2463ef2d7eb0fb3a32 /src/grid.rs
parent08ddc927b812d5f38666b3dd7de843e942710b13 (diff)
downloadadvent-of-code-33a7618e7d02331edccec4841b08d6efe8272dff.tar.gz
advent-of-code-33a7618e7d02331edccec4841b08d6efe8272dff.zip
day 9
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 f360932..4720fdb 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -1,6 +1,6 @@
-#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug)]
+#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug, Default)]
pub struct Row(pub usize);
-#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug)]
+#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug, Default)]
pub struct Col(pub usize);
impl std::ops::Add<usize> for Row {