macro_rules! heap {
( $($key:expr),* $(,)? ) => { ... };
}Expand description
Literally just a BinaryHeap literal with values into’d.
let l: BinaryHeap<String> = heap![ "value" ];
assert_eq!(l.peek(), Some(&"value".to_string()))macro_rules! heap {
( $($key:expr),* $(,)? ) => { ... };
}Literally just a BinaryHeap literal with values into’d.
let l: BinaryHeap<String> = heap![ "value" ];
assert_eq!(l.peek(), Some(&"value".to_string()))