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