pub fn contains_rect(&self, r: &Rect) -> bool {
        let p1 = r.point();
        let p2 = p1 + Point::new(r.width as i32, r.height as i32);
        self.contains(p1) && self.contains(p2)
    }
// Check if this rect contains another rect
Check if this rect contains another rect
Check if this rect contains another rect
pub fn contains_rect(&self, r: &Rect) -> bool {
        let p1 = r.point();
        let p2 = p1 + Point::new(r.width as i32, r.height as i32);
        self.contains(p1) && self.contains(p2)
    }
pub fn contains_rect ( & self , r : & Rect ) -> bool { let p1 = r . point ( ) ; let p2 = p1 + Point :: new ( r . width as i32 , r . height as i32 ) ; self . contains ( p1 ) && self . contains ( p2 ) }
Check if this rect contains another rect
Check if this rect contains another rect
&self
r
&Rect