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 [BinaryHeap](std::collections::BinaryHeap)
#[macro_export]
macro_rules! binary_heap {
    () => { ::std::collections::BinaryHeap::new() };
    
    ($($value:expr),* $(,)?) => {{
        let mut heap = ::std::collections::BinaryHeap::new();
        $(heap.push($value);)*
        heap
    }};
}