pub trait GraphIndex<MirrorOptionalGraphIndex: OptionalGraphIndex<Self>>: Debug + Eq + Ord + Hash + Copy + Sized + From<usize> + Into<MirrorOptionalGraphIndex> + Add<usize, Output = Self> + Sub<usize, Output = Self> {
    // Required method
    fn as_usize(self) -> usize;
}
Expand description

A valid graph index.

Required Methods§

source

fn as_usize(self) -> usize

Get this index as usize.

Implementors§

source§

impl<IndexType: PrimInt + Hash> GraphIndex<OptionalEdgeIndex<IndexType>> for EdgeIndex<IndexType>

source§

impl<IndexType: PrimInt + Hash> GraphIndex<OptionalNodeIndex<IndexType>> for NodeIndex<IndexType>