Rust solution
\nimpl Solution {\n    pub fn plus_one(mut digits: Vec<i32>) -> Vec<i32> {\n        for x in digits.iter_mut().rev() {\n            match *x == 9 {\n           
```\nimpl Solution {\n    pub fn plus_one(mut digits: Vec<i32>) -> Vec<i32> {\n        for x in digits.iter_mut().rev() {\n            match *x == 9 {\n                true => *x = 0,\n                false => {\n                    *x += 1;\n                    return digits;\n                }\n            }\n        }\n        digits.insert(0, 1);\n        digits\n    }\n}\n```
['Rust']