pub fn contains(&self, x: i32, y: i32) -> bool {
           x >= self.x 
        && x <= self.x + self.width as i32
        && y >= self.y
        && y <= self.y + self.height as i32
    }
/// Returns whether a point is within a rect
Returns whether a point is within a rect
Returns whether a point is within a rect
pub fn contains(&self, x: i32, y: i32) -> bool {
           x >= self.x 
        && x <= self.x + self.width as i32
        && y >= self.y
        && y <= self.y + self.height as i32
    }
pub fn contains ( & self , x : i32 , y : i32 ) -> bool { x >= self . x && x <= self . x + self . width as i32 && y >= self . y && y <= self . y + self . height as i32 }
Returns whether a point is within a rect
Returns whether a point is within a rect
&self
x
i32
y
i32
&self
x
i32
y
i32