Add comment about Eq implementation
This commit is contained in:
parent
fbc2847572
commit
0fff7e4c0b
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue