Struct petgraph::graph::NodeIndex [−][src]
pub struct NodeIndex<Ix = DefaultIx>(_);
Expand description
Node identifier.
Implementations
impl<Ix: IndexType> NodeIndex<Ix>
[src]
impl<Ix: IndexType> NodeIndex<Ix>
[src]Trait Implementations
impl<'de, Ix> Deserialize<'de> for NodeIndex<Ix> where
Ix: IndexType + Deserialize<'de>,
[src]
impl<'de, Ix> Deserialize<'de> for NodeIndex<Ix> where
Ix: IndexType + Deserialize<'de>,
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<Ix: IndexType> GraphIndex for NodeIndex<Ix>
[src]
impl<Ix: IndexType> GraphIndex for NodeIndex<Ix>
[src]impl<N, E, Ty, Ix> Index<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[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.
impl<N, E, Ty, Ix> Index<NodeIndex<Ix>> for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
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.
impl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> Index<NodeIndex<Ix>> for MatrixGraph<N, E, Ty, Null, Ix>
[src]
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.
impl<N, E, Ty, Ix> IndexMut<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
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]
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]
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: Ord> Ord for NodeIndex<Ix>
[src]impl<Ix: PartialOrd> PartialOrd<NodeIndex<Ix>> for NodeIndex<Ix>
[src]
impl<Ix: PartialOrd> PartialOrd<NodeIndex<Ix>> for NodeIndex<Ix>
[src]fn partial_cmp(&self, other: &NodeIndex<Ix>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &NodeIndex<Ix>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<Ix> VisitMap<NodeIndex<Ix>> for FixedBitSet where
Ix: IndexType,
[src]
impl<Ix> VisitMap<NodeIndex<Ix>> for FixedBitSet where
Ix: IndexType,
[src]impl<Ix: Copy> Copy for NodeIndex<Ix>
[src]
impl<Ix: Eq> Eq for NodeIndex<Ix>
[src]
impl<Ix> StructuralEq for NodeIndex<Ix>
[src]
impl<Ix> StructuralPartialEq for NodeIndex<Ix>
[src]
Auto Trait Implementations
impl<Ix> RefUnwindSafe for NodeIndex<Ix> where
Ix: RefUnwindSafe,
Ix: RefUnwindSafe,
impl<Ix> Send for NodeIndex<Ix> where
Ix: Send,
Ix: Send,
impl<Ix> Sync for NodeIndex<Ix> where
Ix: Sync,
Ix: Sync,
impl<Ix> Unpin for NodeIndex<Ix> where
Ix: Unpin,
Ix: Unpin,
impl<Ix> UnwindSafe for NodeIndex<Ix> where
Ix: UnwindSafe,
Ix: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,