Rust solution
\nimpl Solution {\n    pub fn asteroids_destroyed(mass: i32, mut asteroids: Vec<i32>) -> bool {\n        asteroids.sort();\n        let mut m:i64 = mass as i64;
```\nimpl Solution {\n    pub fn asteroids_destroyed(mass: i32, mut asteroids: Vec<i32>) -> bool {\n        asteroids.sort();\n        let mut m:i64 = mass as i64;\n        for a in asteroids {\n            let b = a as i64;\n            if b<=m {\n                m += b;\n            } else {\n                return false\n            }\n        }\n        return true\n    }\n}\n```
['Rust']