Trait GraphIndex
traitgraph
pub trait GraphIndex<PartnerOptionalGraphIndex: OptionalGraphIndex<Self>>: Debug + Eq + Ord + Copy + Sized + From<usize> + Into<PartnerOptionalGraphIndex> + Add<usize, Output = Self> { fn as_usize(self) -> usize; }
fn as_usize(self) -> usize
Get this index as usize.
usize
impl<IndexType: PrimInt> GraphIndex<OptionalNodeIndex<IndexType>> for NodeIndex<IndexType>
impl<IndexType: PrimInt> GraphIndex<OptionalEdgeIndex<IndexType>> for EdgeIndex<IndexType>