Struct Rect
pub struct Rect { pub x: u32, pub y: u32, pub width: u32, pub height: u32 }
A Rectangle defined by its top left corner, width and height.
Fields
x: u32The x coordinate of the top left corner.
y: u32The y coordinate of the top left corner.
width: u32The rectangle's width.
height: u32The rectangle's height.
Trait Implementations
impl Clone for Rect
fn clone(&self) -> Self
impl Copy for Rect
impl Debug for Rect
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Rect
impl Hash for Rect
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Rect
fn eq(&self, other: &Self) -> bool