Macro imbl::hashset

source ·
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])
);