PartialEq for geometry
Semántico sayk'uy
Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.
1 qillqakuna · +3 −3
- src/geometry.rs +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,