From 0fff7e4c0bbb807e980109057c7aed768cf2876d Mon Sep 17 00:00:00 2001 From: expectocode Date: Tue, 31 Dec 2019 00:31:28 +0000 Subject: [PATCH] Add comment about Eq implementation --- src/geometry.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/geometry.rs b/src/geometry.rs index 761ce35..b87aff4 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -73,6 +73,7 @@ impl PartialEq for Point { } } +// Marker trait to indicate reflexivity of equality (not just transitivity & symmetry) impl Eq for Point {} impl Rectangle {