tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 499HTML 245JavaScript 8Markdown 71218 Definitions

Derive Eq (#175)

9ca8c202aa6ca82714b16bcebd7ac2d527e338ec · by Andreas Weibye · (4 years ago) · parent 3f26d38a5 · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +3 −3

diff --git a/src/geometry.rs b/src/geometry.rs
index 223103bb1..3c6abd1fe 100644
--- a/src/geometry.rs
+++ b/src/geometry.rs
@@ -4,7 +4,7 @@ use crate::style::{Dimension, FlexDirection};
 use core::ops::Add;
 
 /// An axis-aligned UI rectangle
-#[derive(Debug, Copy, Clone, PartialEq)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq)]
 #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
 #[cfg_attr(feature = "serde", serde(default))]
 pub struct Rect<T> {
@@ -149,7 +149,7 @@ where
 }
 
 /// The width and height of a [`Rect`]
-#[derive(Debug, Copy, Clone, PartialEq)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq)]
 #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
 #[cfg_attr(feature = "serde", serde(default))]
 pub struct Size<T> {
@@ -241,7 +241,7 @@ impl Size<Dimension> {
 /// A 2-dimensional coordinate.
 ///
 /// When used in association with a [`Rect`], represents the bottom-left corner.
-#[derive(Debug, Copy, Clone, PartialEq)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq)]
 pub struct Point<T> {
     /// The x-coordinate
     pub x: T,