[][src]Struct petgraph::graph::EdgeIndex

pub struct EdgeIndex<Ix = DefaultIx>(_);

Edge identifier.

Implementations

impl<Ix: IndexType> EdgeIndex<Ix>[src]

pub fn new(x: usize) -> Self[src]

pub fn index(self) -> usize[src]

pub fn end() -> Self[src]

An invalid EdgeIndex used to denote absence of an edge, for example to end an adjacency list.

Trait Implementations

impl<Ix: Clone> Clone for EdgeIndex<Ix>[src]

impl<Ix: Copy> Copy for EdgeIndex<Ix>[src]

impl<Ix: Debug> Debug for EdgeIndex<Ix>[src]

impl<Ix: Default> Default for EdgeIndex<Ix>[src]

impl<Ix: Eq> Eq for EdgeIndex<Ix>[src]

impl<Ix: IndexType> GraphIndex for EdgeIndex<Ix>[src]

impl<Ix: Hash> Hash for EdgeIndex<Ix>[src]

impl<N, E, Ty, Ix> Index<EdgeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType
[src]

Index the Graph by EdgeIndex to access edge weights.

Panics if the edge doesn't exist.

type Output = E

The returned type after indexing.

impl<N, E, Ty, Ix> Index<EdgeIndex<Ix>> for StableGraph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType
[src]

Index the StableGraph by EdgeIndex to access edge weights.

Panics if the edge doesn't exist.

type Output = E

The returned type after indexing.

impl<N, E, Ty, Ix> IndexMut<EdgeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType
[src]

Index the Graph by EdgeIndex to access edge weights.

Panics if the edge doesn't exist.

impl<N, E, Ty, Ix> IndexMut<EdgeIndex<Ix>> for StableGraph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType
[src]

Index the StableGraph by EdgeIndex to access edge weights.

Panics if the edge doesn't exist.

impl<Ix: Ord> Ord for EdgeIndex<Ix>[src]

impl<Ix: PartialEq> PartialEq<EdgeIndex<Ix>> for EdgeIndex<Ix>[src]

impl<Ix: PartialOrd> PartialOrd<EdgeIndex<Ix>> for EdgeIndex<Ix>[src]

impl<Ix> StructuralEq for EdgeIndex<Ix>[src]

impl<Ix> StructuralPartialEq for EdgeIndex<Ix>[src]

impl<Ix> VisitMap<EdgeIndex<Ix>> for FixedBitSet where
    Ix: IndexType
[src]

Auto Trait Implementations

impl<Ix> RefUnwindSafe for EdgeIndex<Ix> where
    Ix: RefUnwindSafe

impl<Ix> Send for EdgeIndex<Ix> where
    Ix: Send

impl<Ix> Sync for EdgeIndex<Ix> where
    Ix: Sync

impl<Ix> Unpin for EdgeIndex<Ix> where
    Ix: Unpin

impl<Ix> UnwindSafe for EdgeIndex<Ix> where
    Ix: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.