pub fn touching(&self, rect: &Rect) -> bool {
        rect.x() > self.x - 10.0
            && rect.x() < self.x + 10.0
            && rect.y() > self.y - 10.0
            && rect.y() < self.y + 10.0
    }
/// Returns true if the referenced Rect passes into the turn
Returns true if the referenced Rect passes into the turn
Returns true if the referenced Rect passes into the turn
pub fn touching(&self, rect: &Rect) -> bool {
        rect.x() > self.x - 10.0
            && rect.x() < self.x + 10.0
            && rect.y() > self.y - 10.0
            && rect.y() < self.y + 10.0
    }
pub fn touching ( & self , rect : & Rect ) -> bool { rect . x ( ) > self . x - 10.0 && rect . x ( ) < self . x + 10.0 && rect . y ( ) > self . y - 10.0 && rect . y ( ) < self . y + 10.0 }
Returns true if the referenced Rect passes into the turn
Returns true if the referenced Rect passes into the turn
&self
rect
&Rect
&self
rect
&Rect