Crate addressable_pairing_heap

Source
Expand description

An addressable pairing heap implementation for Rust.

Addressable heaps return handles to stored elements that make it possible to query and edit them. For example this allows for the decrease_key(h: Handle) method that decreases the key (priority) of the element that is associated with the given handle.

This implementation stores elements within a Stash that allocates elements densely within an array.

It is possible to use custom types as the underlying Key type by implementing the Key trait.

Structs§

  • Iterator over values stored within a PairingHeap in a sorted-by-min order. Drains the heap.
  • A handle to access stored elements within an addressable pairing heap.
  • An addressable pairing heap implementation.
  • Iterator over references to values stored within a PairingHeap.
  • Iterator over mutable references to values stored within a PairingHeap.

Enums§

  • Errors that can be caused while using PairingHeap.

Traits§

  • Represents a trait for keys within an addressable pairing heap.

Type Aliases§

  • Type alias for PairingHeap that has i64 as default Key type.
  • Generic Result type for PairingHeap methods.