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 [BTreeSet](std::collections::BTreeSet)
#[macro_export]
macro_rules! btree_set {
    () => { ::std::collections::BTreeSet::new() };
    
    ($($v:expr),* $(,)?) => {{
        let mut set = ::std::collections::BTreeSet::new();
        $(set.insert($v);)*
        set
    }};
}