Rust solution
rust\nconst DIV: i64 = 1_000_000_007;\n\nimpl Solution {\n    pub fn max_area(h: i32, w: i32, horizontal_cuts: Vec<i32>, vertical_cuts: Vec<i32>) -> i32 {\n    
```rust\nconst DIV: i64 = 1_000_000_007;\n\nimpl Solution {\n    pub fn max_area(h: i32, w: i32, horizontal_cuts: Vec<i32>, vertical_cuts: Vec<i32>) -> i32 {\n        let mut hc = horizontal_cuts;\n        let mut vc = vertical_cuts;\n        hc.extend(&[0, h]);\n        vc.extend(&[0, w]);\n        hc.sort_unstable();\n        vc.sort_unstable();\n        let hmax = hc.windows(2).map(|w| w[1] - w[0]).max().unwrap() as i64;\n        let vmax = vc.windows(2).map(|w| w[1] - w[0]).max().unwrap() as i64;\n        (hmax * vmax % DIV) as i32\n    }\n}\n```
['Rust']