image/math/
rect.rs

1/// A Rectangle defined by its top left corner, width and height.
2#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
3#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
4pub struct Rect {
5    /// The x coordinate of the top left corner.
6    pub x: u32,
7    /// The y coordinate of the top left corner.
8    pub y: u32,
9    /// The rectangle's width.
10    pub width: u32,
11    /// The rectangle's height.
12    pub height: u32,
13}