pgrx_pg_sys/submodules/
cmp.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{Point, BOX};

impl PartialEq for Point {
    #[inline]
    fn eq(&self, other: &Self) -> bool {
        self.x == other.x && self.y == other.y
    }
}
impl Eq for Point {}

impl PartialEq for BOX {
    #[inline]
    fn eq(&self, other: &Self) -> bool {
        self.high == other.high && self.low == other.low
    }
}
impl Eq for BOX {}