tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1100HTML 1031Markdown 12TOML 84455 Definiciones

PartialEq for geometry

a5d51d4e4efebeff67bb275d1411a628c2ac527e · por Emil Sjölander · (hace 7 años) · padre 8fc9e57b8 · ver el árbol en este commit

Delta semántico

Ninguna definición cambió: el cambio es de texto, documentación o datos.

1 archivos · +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,