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

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

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

Marked unsafe because: the trait must faithfully preseve and convert index values.

Required methods

fn new(x: usize) -> Self

fn index(&self) -> usize

fn max() -> Self

Loading content...

Implementations on Foreign Types

impl IndexType for usize[src]

impl IndexType for u32[src]

impl IndexType for u16[src]

impl IndexType for u8[src]

Loading content...

Implementors

Loading content...