Skip to content

Commit

Permalink
Derive Eq (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weibye authored Jun 18, 2022
1 parent 12d44d5 commit 9255915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down Expand Up @@ -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> {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9255915

Please sign in to comment.