pgrx_pg_sys/submodules/
cmp.rs1use crate::{BOX, CIRCLE, Point};
2
3impl PartialEq for Point {
4 #[inline]
5 fn eq(&self, other: &Self) -> bool {
6 self.x == other.x && self.y == other.y
7 }
8}
9impl Eq for Point {}
10
11impl PartialEq for BOX {
12 #[inline]
13 fn eq(&self, other: &Self) -> bool {
14 self.high == other.high && self.low == other.low
15 }
16}
17impl Eq for BOX {}
18
19impl PartialEq for CIRCLE {
20 #[inline]
21 fn eq(&self, other: &Self) -> bool {
22 self.center == other.center && self.radius == other.radius
23 }
24}
25impl Eq for CIRCLE {}