From 48f321a80970ebeb8374072b1d2e0a4d297aa348 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sun, 20 Dec 2020 03:58:46 +0100 Subject: Add dimensional indicator with scaling --- src/math/rect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math/rect.rs') diff --git a/src/math/rect.rs b/src/math/rect.rs index 50c1cb0..b571644 100644 --- a/src/math/rect.rs +++ b/src/math/rect.rs @@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize}; use std::ops::{Add, AddAssign}; /// Represents a Rectangle with the value type T. -#[derive(Copy, Clone, Debug, Default, Serialize, Deserialize)] +#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)] pub struct Rect { /// The x coordinate, or leftmost coordinate of the Rect. pub x: T, -- cgit v1.2.3-70-g09d2