Add heapify function to binary heap
This commit is contained in:
parent
ee3cb08fe6
commit
6bb65f6493
3 changed files with 24 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
pub mod binary_heap;
|
||||
|
||||
/// A data structure usable for backing a "pure" queue
|
||||
pub trait PureBacking<T: Ord> {
|
||||
pub trait PureBacking<T: Ord>: FromIterator<T> {
|
||||
/// Instantiates a new data structure
|
||||
fn new() -> Self;
|
||||
/// Places an item into the queue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue