Trait rs_graph::vec::GraphIndexer [] [src]

pub trait GraphIndexer {
    type Graph;
    type Item;
    fn index(g: &Self::Graph, item: Self::Item) -> usize;
fn num_items(g: &Self::Graph) -> usize; }

A mapper of graph items to indices.

Associated Types

Required Methods

Implementors