Derive `Eq` and `Hash` on `Rect`.

This commit is contained in:
Nolan Darilek 2022-03-14 13:24:54 -05:00
parent 0d5624fe4c
commit 7bb972c7b4
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ impl Point {
}
/// Rectangle region on the map
#[derive(PartialEq, Copy, Clone, Debug)]
#[derive(Hash, PartialEq, Eq, Copy, Clone, Debug)]
pub struct Rect {
pub x1: usize,
pub x2: usize,