[][src]Macro velcro::hash_set

hash_set!() { /* proc-macro */ }

An initializer for HashSet, allowing for items to be specified individually or "spread" using the .. operator.

Usage

use velcro::hash_set;
let set: HashSet<_> = (0..7).into_iter().collect();

assert_eq!(hash_set![..(0..7)], set);
assert_eq!(hash_set![0, 1, ..(2..7)], set);