macron-collections 0.1.6

Creates a new instance of std collections: HashMap, HashSet, BTreeMap, BTreeSet, VecDeque, LinkedList and BinaryHeap
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Creates a collection [HashSet](std::collections::HashSet)
#[macro_export]
macro_rules! hash_set {
    () => { ::std::collections::HashSet::new() };
    
    ($($v:expr),* $(,)?) => {{
        let mut set = ::std::collections::HashSet::new();
        $(set.insert($v);)*
        set
    }};
}