pub fn intersects(&self, rect: &Rectangle) -> bool {
        !(rect.x() > (self.x() + self.width())
            || self.x() > (rect.x() + rect.width())
            || rect.y() > (self.y() + self.height())
            || self.y() > (rect.y() + rect.height()))
    }
/// Checks if this rect intersects with the given `rect`.
Checks if this rect intersects with the given `rect`.
Checks if this rect intersects with the given ` rect ` .
pub fn intersects(&self, rect: &Rectangle) -> bool {
        !(rect.x() > (self.x() + self.width())
            || self.x() > (rect.x() + rect.width())
            || rect.y() > (self.y() + self.height())
            || self.y() > (rect.y() + rect.height()))
    }
pub fn intersects ( & self , rect : & Rectangle ) -> bool { ! ( rect . x ( ) > ( self . x ( ) + self . width ( ) ) || self . x ( ) > ( rect . x ( ) + rect . width ( ) ) || rect . y ( ) > ( self . y ( ) + self . height ( ) ) || self . y ( ) > ( rect . y ( ) + rect . height ( ) ) ) }
Checks if this rect intersects with the given `rect`.
Checks if this rect intersects with the given ` rect ` .
&self
rect
&Rectangle