Expand description
§Go Heap in Rust
go_heap_rs
implements the Go’s heap interface in Rust
The heap it self is backed by another collection which it must implement the Heap
trait for it
§Advantages
- More control over swap method
- Added
fix
andremove
methods - Full access to underlying data
§Disadvantages
- Must be backed by a collection like Vector
- Not really easy to work with
- Lack of some methods like
from
Structs§
- Heap
Type - A heap structure which holds a type which derives from Heap
- MinHeap
- A very simple min heap implementation
Traits§
- Heap
- All types which you want to create heap from them must implement this trait