From 5c5612d9319cf9347e26891b15507efee30ad1b3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 3 Sep 2019 13:56:43 +0200 Subject: Apply latest changes to `Image` and `ProgressBar` --- src/rectangle.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/rectangle.rs') diff --git a/src/rectangle.rs b/src/rectangle.rs index 9f2a1350..95c2570c 100644 --- a/src/rectangle.rs +++ b/src/rectangle.rs @@ -1,22 +1,22 @@ use crate::Point; /// A rectangle. -#[derive(Debug, PartialEq, Copy, Clone)] -pub struct Rectangle { +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct Rectangle { /// X coordinate of the top-left corner. - pub x: f32, + pub x: T, /// Y coordinate of the top-left corner. - pub y: f32, + pub y: T, /// Width of the rectangle. - pub width: f32, + pub width: T, /// Height of the rectangle. - pub height: f32, + pub height: T, } -impl Rectangle { +impl Rectangle { /// Returns true if the given [`Point`] is contained in the [`Rectangle`]. /// /// [`Point`]: struct.Point.html -- cgit