Type Definition coca::collections::InlineHeap

source · []
pub type InlineHeap<T, const C: usize, I = usize> = BinaryHeap<T, InlineStorage<T, C>, I>;
Expand description

A binary heap using an inline array for storage.

Examples

let mut heap = coca::collections::InlineHeap::<char, 3, u8>::new();
heap.push('a');
let vec = heap.into_vec();
assert_eq!(vec[0u8], 'a');