intersection

Function intersection 

Source
pub fn intersection(a: &Rectangle, b: &Rectangle) -> Option<Rectangle>
Expand description

Returns the intersection of two rectangles, or None if they do not overlap.