Trait rs_graph::shortestpath::heap::Heap
source · pub trait Heap {
type Item;
type Key;
fn new() -> Self;
fn clear(&mut self);
fn is_empty(&self) -> bool;
fn insert(&mut self, key: Self::Key) -> Self::Item;
fn decrease(&mut self, item: Self::Item);
fn pop_min(&mut self) -> Option<Self::Key>;
fn key(&mut self, _: Self::Item) -> &mut Self::Key;
}
Expand description
Interface for heap data-structures.