Trait petgraph::graph::IndexType [−] [src]

pub trait IndexType: Copy + Clone + Ord + Debug + 'static {
    fn new(x: usize) -> Self;
    fn index(&self) -> usize;
    fn max() -> Self;
    fn zero() -> Self;
    fn one() -> Self;
}

Trait for the unsigned integer type used for node and edge indices.

Required Methods

fn new(x: usize) -> Self

fn index(&self) -> usize

fn max() -> Self

fn zero() -> Self

fn one() -> Self

Implementors