check overlapping in both dimensions separately
\nfn ov(a1 : i32, a2: i32, b1: i32, b2: i32) -> bool {\n    ! ((a2<=b1) || (b2 <= a1))\n}\nimpl Solution {\n    pub fn is_rectangle_overlap(a: Vec<i32>, b: Vec<
```\nfn ov(a1 : i32, a2: i32, b1: i32, b2: i32) -> bool {\n    ! ((a2<=b1) || (b2 <= a1))\n}\nimpl Solution {\n    pub fn is_rectangle_overlap(a: Vec<i32>, b: Vec<i32>) -> bool {        \n        ov(a[0],a[2], b[0], b[2]) && ov(a[1],a[3],b[1],b[3])\n    }\n}\n```
['Rust']