Rust solutions
Simle use of starts_with:\n\nimpl Solution {\n    pub fn count_prefixes(words: Vec<String>, s: String) -> i32 {\n        words.iter().filter(|w| s.starts_with(w
1. Simle use of `starts_with`:\n```\nimpl Solution {\n    pub fn count_prefixes(words: Vec<String>, s: String) -> i32 {\n        words.iter().filter(|w| s.starts_with(w.as_str())).count() as _\n    }\n}\n```\n2. Slice comparison\n```\nimpl Solution {\n    pub fn count_prefixes(words: Vec<String>, s: String) -> i32 {\n        words\n            .iter()\n            .filter(|w| w.len() <= s.len() && w.as_str() == &s[..w.len()])\n            .count() as _\n    }\n}\n```\n3. Functional solution with `zip`:\n```\nimpl Solution {\n    pub fn count_prefixes(words: Vec<String>, s: String) -> i32 {\n        words\n            .iter()\n            .filter(|w| w.len() <= s.len() && w.chars().zip(s.chars()).all(|(a, b)| a == b))\n            .count() as _\n    }\n}\n```
['Rust']