macro_rules! hashset {
( $($x:expr),* ) => { ... };
( $($x:expr,)* ) => { ... };
}Expand description
Create a HashSet containing the arguments
hashset! allows HashSets to be constructed using minimal syntax:
use std::collections::HashSet;
let m = hashset![
"a",
"b",
"c",
];
assert!(m.contains("a"));
assert!(m.contains("b"));
assert!(m.contains("c"));