gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 788HTML 740Markdown 12TOML 62536 Sutichaykuna

PartialEq for geometry

ab1242da23941c0f70d66e1d9303f155e6e39797 · ruwaq Emil Sjölander · (7 wata ñawpaq) · tayta aacf20482 · kay commitpi sach'ata qhaway

Semántico sayk'uy

Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.

1 qillqakuna · +3 −3

diff --git a/src/geometry.rs b/src/geometry.rs
index 0e3bd6901..91de4cc80 100644
--- a/src/geometry.rs
+++ b/src/geometry.rs
@@ -2,7 +2,7 @@ use std::ops::Add;
 
 use crate::style;
 
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Copy, Clone, PartialEq)]
 pub struct Rect<T> {
     pub start: T,
     pub end: T,
@@ -79,7 +79,7 @@ where
     }
 }
 
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Copy, Clone, PartialEq)]
 pub struct Size<T> {
     pub width: T,
     pub height: T,
@@ -122,7 +122,7 @@ impl<T> Size<T> {
     }
 }
 
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Copy, Clone, PartialEq)]
 pub struct Point<T> {
     pub x: T,
     pub y: T,