[][src]Struct graphrepresentations::graph::Node

pub struct Node<N> { /* fields omitted */ }

A container for a node. Can be used to add nodes to a MutableGraph.

Methods

impl<N> Node<N>[src]

pub fn new(data: N) -> Self[src]

Creates a new node with the given node data.

pub fn data(&self) -> &N[src]

Returns the data of this node.

Trait Implementations

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

Auto Trait Implementations

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

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

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

impl<N> UnwindSafe for Node<N> where
    N: UnwindSafe

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

Blanket Implementations

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

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

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.

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

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

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