macro_rules! binary_heap {
{$v: expr; $c: expr} => { ... };
{$($v: expr),* $(,)?} => { ... };
}Available on crate feature
std only.Expand description
Macro for creating a BinaryHeap.
Follows the same syntax as the vec! macro.
ยงExamples
use map_macro::binary_heap;
let v = binary_heap![0, 1, 2, 3];
let v = binary_heap![0; 4];