pub struct BinHeap<K, ID = u32> { /* private fields */ }
Expand description

Simply binary heap data structure.

Trait Implementations

Type of items on the heap.
Type of keys.
Return a newly allocated heap.
Remove all elements from the heap.
Return true if heap is empty.
Insert a new item into the heap.
Decrease the key of an item.
Return the minimal key.
Returns the current key of an item.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.