macro_rules! binary_heap_e {
{$v: expr; $c: expr} => { ... };
{$($v: expr),* $(,)?} => { ... };
}
Available on crate feature
std
only.Expand description
Explicitly typed equivalent of binary_heap!
.
See the explicity typed macros section.
ยงExamples
use std::collections::BinaryHeap;
use map_macro::binary_heap_e;
enum Foo { A, B, C, D }
let v: BinaryHeap<u8> = binary_heap_e![Foo::A, Foo::B, Foo::C, Foo::D];
let v: BinaryHeap<u8> = binary_heap_e![Foo::A; 4];