diff --git a/output/src/space.rs b/output/src/space.rs index 3e1298b..3e850fd 100644 --- a/output/src/space.rs +++ b/output/src/space.rs @@ -208,6 +208,13 @@ pub struct Measure { pub y: Arc, } +impl PartialEq for Measure { + fn eq (&self, other: &Self) -> bool { + self.x.load(Relaxed) == other.x.load(Relaxed) && + self.y.load(Relaxed) == other.y.load(Relaxed) + } +} + // TODO: 🡘 🡙 ←🡙→ indicator to expand window when too small impl Content for Measure { fn render (&self, to: &mut E) {