[][src]Struct petgraph::graph::Node

pub struct Node<N, Ix = DefaultIx> {
    pub weight: N,
    // some fields omitted
}

The graph's node type.

Fields

weight: N

Associated node data.

Methods

impl<N, Ix: IndexType> Node<N, Ix>[src]

pub fn next_edge(&self, dir: Direction) -> EdgeIndex<Ix>[src]

Accessor for data structure internals: the first edge in the given direction.

Trait Implementations

impl<E, Ix> Clone for Node<E, Ix> where
    E: Clone,
    Ix: Copy
[src]

impl<N: Debug, Ix: Debug> Debug for Node<N, Ix>[src]

Auto Trait Implementations

impl<N, Ix> RefUnwindSafe for Node<N, Ix> where
    Ix: RefUnwindSafe,
    N: RefUnwindSafe

impl<N, Ix> Send for Node<N, Ix> where
    Ix: Send,
    N: Send

impl<N, Ix> Sync for Node<N, Ix> where
    Ix: Sync,
    N: Sync

impl<N, Ix> Unpin for Node<N, Ix> where
    Ix: Unpin,
    N: Unpin

impl<N, Ix> UnwindSafe for Node<N, Ix> where
    Ix: UnwindSafe,
    N: 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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.