macro_rules! hashset {
() => { ... };
( $($x:expr),* ) => { ... };
( $($x:expr ,)* ) => { ... };
}
Expand description
Construct a set from a sequence of values.
ยงExamples
assert_eq!(
hashset![1, 2, 3],
HashSet::from(vec![1, 2, 3])
);