[][src]Type Definition coca::binary_heap::TiArrayHeap

type TiArrayHeap<E, Index, const C: usize> = BinaryHeap<E, InlineStorage<E, C>, Index>;
This is supported on crate feature nightly only.

A binary heap using an inline array for storage, generic over the index type.

Examples

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