summaryrefslogtreecommitdiffstats
path: root/src/grid.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-12-14 01:07:49 -0500
committerJesse Luehrs <doy@tozt.net>2022-12-14 01:07:49 -0500
commit41bd54af7fd1ebd28122584abe811c7076571bc0 (patch)
tree2e34eea0b7c613b9b2b940c79665346c3a2f85d9 /src/grid.rs
parent08d25b19f75484fc2d036dec7d431910e75f7cad (diff)
downloadadvent-of-code-41bd54af7fd1ebd28122584abe811c7076571bc0.tar.gz
advent-of-code-41bd54af7fd1ebd28122584abe811c7076571bc0.zip
day 14
Diffstat (limited to 'src/grid.rs')
-rw-r--r--src/grid.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/grid.rs b/src/grid.rs
index 4720fdb..659ef01 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -1,6 +1,10 @@
-#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug, Default)]
+#[derive(
+ Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd, Debug, Default,
+)]
pub struct Row(pub usize);
-#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug, Default)]
+#[derive(
+ Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd, Debug, Default,
+)]
pub struct Col(pub usize);
impl std::ops::Add<usize> for Row {