Rust simple one-liner
\nimpl Solution {\n    pub fn flip_and_invert_image(a: Vec<Vec<i32>>) -> Vec<Vec<i32>> {\n        a.iter()\n         .map(|r| r.iter().rev().map(|i| 1 - i).coll
```\nimpl Solution {\n    pub fn flip_and_invert_image(a: Vec<Vec<i32>>) -> Vec<Vec<i32>> {\n        a.iter()\n         .map(|r| r.iter().rev().map(|i| 1 - i).collect())\n         .collect()\n    }\n}\n```
[]