Rust with pattern match
rust\npub fn fizz_buzz(n: i32) -> Vec<String> {\n\tlet mut result = vec![];\n\n\tfor i in 1..=n {\n\t\tlet m3 = i % 3 == 0;\n\t\tlet m5 = i % 5 == 0;\n\t\tlet v
``` rust\npub fn fizz_buzz(n: i32) -> Vec<String> {\n\tlet mut result = vec![];\n\n\tfor i in 1..=n {\n\t\tlet m3 = i % 3 == 0;\n\t\tlet m5 = i % 5 == 0;\n\t\tlet value = match (m3, m5) {\n\t\t\t(true, true) => String::from("FizzBuzz"),\n\t\t\t(true, false) => String::from("Fizz"),\n\t\t\t(false, true) => String::from("Buzz"),\n\t\t\t_ => i.to_string(),\n\t\t};\n\t\tresult.push(value);\n\t}\n\n\tresult\n}\n```
[]