Derive Eq for Rectangle

master
expectocode 2019-12-31 00:31:18 +00:00
parent f5db656a0f
commit fbc2847572
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ pub struct Point {
y: u32,
}
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct Rectangle {
top_left: Point,
width: u32,