[][src]Struct petgraph::graph::NodeIndex

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

Node identifier.

Implementations

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

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

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

pub fn end() -> Self[src]

Trait Implementations

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

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

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

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

impl<'de, Ix> Deserialize<'de> for NodeIndex<Ix> where
    Ix: IndexType + Deserialize<'de>, 
[src]

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

impl<Ix: IndexType> From<Ix> for NodeIndex<Ix>[src]

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

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

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

Index the Graph by NodeIndex to access node weights.

Panics if the node doesn't exist.

type Output = N

The returned type after indexing.

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

Index the StableGraph by NodeIndex to access node weights.

Panics if the node doesn't exist.

type Output = N

The returned type after indexing.

impl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> Index<NodeIndex<Ix>> for MatrixGraph<N, E, Ty, Null, Ix>[src]

Index the MatrixGraph by NodeIndex to access node weights.

Panics if the node doesn't exist.

type Output = N

The returned type after indexing.

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

Index the Graph by NodeIndex to access node weights.

Panics if the node doesn't exist.

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

Index the StableGraph by NodeIndex to access node weights.

Panics if the node doesn't exist.

impl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> IndexMut<NodeIndex<Ix>> for MatrixGraph<N, E, Ty, Null, Ix>[src]

Index the MatrixGraph by NodeIndex to access node weights.

Panics if the node doesn't exist.

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

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

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

impl<Ix> Serialize for NodeIndex<Ix> where
    Ix: IndexType + Serialize
[src]

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

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

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

Auto Trait Implementations

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

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

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

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

impl<Ix> UnwindSafe for NodeIndex<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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.