Macro collection_macros::hashset
[−]
[src]
macro_rules! hashset { ( $($x:expr),* ) => { ... }; ( $($x:expr,)* ) => { ... }; }
Create a HashSet
containing the arguments
hashset!
allows HashSet
s to be constructed using minimal syntax:
use std::collections::HashSet; let m = hashset![ "a", "b", "c", ]; assert!(m.contains("a")); assert!(m.contains("b")); assert!(m.contains("c"));