pub fn contains_rect(&self, rect: &Rectangle) -> bool {
        let p1 = rect.position();
        let p2 = (p1.x() + rect.width(), p1.y() + rect.height());
        self.contains(p1) && self.contains(p2)
    }
/// Checks if this rect contains the given `rect`.
Checks if this rect contains the given `rect`.
Checks if this rect contains the given ` rect ` .
pub fn contains_rect(&self, rect: &Rectangle) -> bool {
        let p1 = rect.position();
        let p2 = (p1.x() + rect.width(), p1.y() + rect.height());
        self.contains(p1) && self.contains(p2)
    }
pub fn contains_rect ( & self , rect : & Rectangle ) -> bool { let p1 = rect . position ( ) ; let p2 = ( p1 . x ( ) + rect . width ( ) , p1 . y ( ) + rect . height ( ) ) ; self . contains ( p1 ) && self . contains ( p2 ) }
Checks if this rect contains the given `rect`.
Checks if this rect contains the given ` rect ` .
&self
rect
&Rectangle