Rust solution!
Newbie in rust, any suggestion welcome\n# Code\n\n\nimpl Solution {\n    pub fn get_maximum_consecutive(coins: Vec<i32>) -> i32 {\n      let mut c = coins.clone
Newbie in rust, any suggestion welcome\n# Code\n```\n\nimpl Solution {\n    pub fn get_maximum_consecutive(coins: Vec<i32>) -> i32 {\n      let mut c = coins.clone();\n      c.sort();\n      let mut res = 0;\n      let mut ans = c.iter()\n       .try_fold(0, |accum, &val| {\n         if accum < val - 1 {\n           res = accum;\n           None\n         } else {\n           Some(accum + val)\n         }\n       }).unwrap_or(res);\n      ans+1\n    }\n}\n\n```
['Rust']