macro_rules! binary_heap {
    () => { ... };
    ($($elem:expr),*) => { ... };
}Expand description
Creates a new BinaryHeap<T>.
This macro provides two ways to initialize a BinaryHeap:
- 
Empty Heap: - Calling binary_heap!()creates an emptyBinaryHeap.
 
- Calling 
- 
With Elements: - You can initialize a BinaryHeapwith elements by providing a comma-separated list of values, e.g.,binary_heap!(1, 2, 3).
- This will create a BinaryHeapcontaining the specified elements.
 
- You can initialize a 
ยงExamples
use std_macro_extensions::*;
let empty_heap: BinaryHeap<i32> = binary_heap!();
let number_heap: BinaryHeap<i32> = binary_heap!(3, 1, 4, 2);