Crates.io | biheap |
lib.rs | biheap |
version | 0.5.1 |
source | src |
created_at | 2023-05-18 13:13:44.775878 |
updated_at | 2023-05-22 02:19:10.814053 |
description | A heap group that supports efficient removal of extreme elements. |
homepage | |
repository | |
max_upload_size | |
id | 867922 |
size | 73,588 |
BiHeap is a implementation of heap structure, to maintain the extreme values of a list of data.
BiHeap
is the core data structure to control the two heaps.
Any data follows by Ord
trait can be the type parameter of the BiHeap generic struct.
The Indexer
is a reference to the data in the heap.
Actually it doesn't describe the owner of the data, but the position of the data in the heap.
It means the data it points out would be 'miss', if you attempt to remove it from the heap.
The PeekMut
describes a mutable reference to the data in the heap.
It can be used to modify the data in the heap, peek it, reset it, or remove it.
threadsafe
feature added.Sync
and Send
traits for any Indexer
.If you have some questions, welcome on https://github.com/CutieDeng/biheap/issues.