macro_rules! set {
(@single $($x:tt)*) => { ... };
(@count $($rest:expr),*) => { ... };
($($key:expr,)+) => { ... };
($($key:expr),*) => { ... };
}Expand description
Alias of “hashset!”. Create a HashSet from a list of elements.
§Example
#[macro_use] extern crate maplit2;
let set = set!{"a", "b"};
assert!(set.contains("a"));
assert!(set.contains("b"));
assert!(!set.contains("c"));