Rust 1 line
rust\nimpl Solution {\n    pub fn flip_and_invert_image(a: Vec<Vec<i32>>) -> Vec<Vec<i32>> {\n        a.into_iter().map(|r| r.into_iter().map(|x| x ^ 1).rev().c
```rust\nimpl Solution {\n    pub fn flip_and_invert_image(a: Vec<Vec<i32>>) -> Vec<Vec<i32>> {\n        a.into_iter().map(|r| r.into_iter().map(|x| x ^ 1).rev().collect::<Vec<i32>>()).collect()\n    }\n}\n```
[]