pub struct NodeIndex<Ix = DefaultIx>(_);Expand description
Node identifier.
Implementations
Trait Implementations
sourceimpl<N, E, Ty, Ix> Index<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
 
impl<N, E, Ty, Ix> Index<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
Index the Graph by NodeIndex to access node weights.
Panics if the node doesn’t exist.
sourceimpl<N, E, Ty, Ix> Index<NodeIndex<Ix>> for StableGraph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
 
impl<N, E, Ty, Ix> Index<NodeIndex<Ix>> for StableGraph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
Index the StableGraph by NodeIndex to access node weights.
Panics if the node doesn’t exist.
sourceimpl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> Index<NodeIndex<Ix>> for MatrixGraph<N, E, Ty, Null, Ix>
 
impl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> Index<NodeIndex<Ix>> for MatrixGraph<N, E, Ty, Null, Ix>
Index the MatrixGraph by NodeIndex to access node weights.
Panics if the node doesn’t exist.
sourceimpl<N, E, Ty, Ix> IndexMut<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
 
impl<N, E, Ty, Ix> IndexMut<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
Index the Graph by NodeIndex to access node weights.
Panics if the node doesn’t exist.
sourceimpl<N, E, Ty, Ix> IndexMut<NodeIndex<Ix>> for StableGraph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
 
impl<N, E, Ty, Ix> IndexMut<NodeIndex<Ix>> for StableGraph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType, 
Index the StableGraph by NodeIndex to access node weights.
Panics if the node doesn’t exist.
sourceimpl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> IndexMut<NodeIndex<Ix>> for MatrixGraph<N, E, Ty, Null, Ix>
 
impl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> IndexMut<NodeIndex<Ix>> for MatrixGraph<N, E, Ty, Null, Ix>
Index the MatrixGraph by NodeIndex to access node weights.
Panics if the node doesn’t exist.
sourceimpl<Ix: Ord> Ord for NodeIndex<Ix>
 
impl<Ix: Ord> Ord for NodeIndex<Ix>
sourceimpl<Ix: PartialOrd> PartialOrd<NodeIndex<Ix>> for NodeIndex<Ix>
 
impl<Ix: PartialOrd> PartialOrd<NodeIndex<Ix>> for NodeIndex<Ix>
sourcefn partial_cmp(&self, other: &NodeIndex<Ix>) -> Option<Ordering>
 
fn partial_cmp(&self, other: &NodeIndex<Ix>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<Ix: Copy> Copy for NodeIndex<Ix>
impl<Ix: Eq> Eq for NodeIndex<Ix>
impl<Ix: IndexType> GraphIndex for NodeIndex<Ix>
impl<Ix> StructuralEq for NodeIndex<Ix>
impl<Ix> StructuralPartialEq for NodeIndex<Ix>
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
    T: Hash + ?Sized, 
 
impl<T> CallHasher for T where
    T: Hash + ?Sized, 
sourceimpl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
 
impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more