Macro medea::hashset[][src]

macro_rules! hashset {
    (@single $($x:tt)*) => { ... };
    (@count $($rest:expr),*) => { ... };
    ($($value:expr,)+) => { ... };
    ($($value:expr),*) => { ... };
}

Creates new HashSet from a list of values.

Example

let map = hashset![1, 1, 2];
assert!(map.contains(&1));
assert!(map.contains(&2));