pgrx_pg_sys/submodules/cmp.rs
1use crate::{Point, BOX};
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 {}