pub trait Vertex<K, V>{
// Required methods
fn get_value(&self) -> &V;
fn get_mut_value(&mut self) -> &mut V;
fn key(&self) -> K;
}Expand description
Generic behaviour of a vertex
Key type (K) must implement Hash, Eq and Clone
Value type is free