From 446ec7a71477e1b9ca117b7a23759d6318eb2cf0 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Sat, 23 Aug 2025 23:19:49 +0300 Subject: [PATCH] feat(output): impl PartialEq for Measure --- output/src/space.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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) {