Add comment about Eq implementation

This commit is contained in:
expectocode 2019-12-31 00:31:28 +00:00
parent fbc2847572
commit 0fff7e4c0b
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ impl PartialEq for Point {
} }
} }
// Marker trait to indicate reflexivity of equality (not just transitivity & symmetry)
impl Eq for Point {} impl Eq for Point {}
impl Rectangle { impl Rectangle {