Derive Eq
and Hash
on Rect
.
This commit is contained in:
parent
0d5624fe4c
commit
7bb972c7b4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user