Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[macro_use]
- extern crate lazy_static;
- use std::collections::HashSet;
- lazy_static! {
- static ref cross_actions: HashSet<&'static str> = {
- let h: HashSet<&str> = [
- "string 1",
- "string 2",
- "string 3",
- // etc
- ].iter().cloned().collect();
- h
- };
- }
- fn main() {
- for s in cross_actions.iter() {
- println!("string: {}", s);
- }
- }
Add Comment
Please, Sign In to add comment