[][src]Struct graphrepresentations::graph::NodeRef

pub struct NodeRef<'a, N> { /* fields omitted */ }

A container for a node. Is returned by Graph when a complete node instance is requested.

Methods

impl<'a, N> NodeRef<'a, N>[src]

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

Creates a new node ref with the given node data. This method should not be used by the client.

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

Returns a reference to the data of this node.

Trait Implementations

impl<'a, N: PartialEq> PartialEq<NodeRef<'a, N>> for NodeRef<'a, N>[src]

impl<'a, N: Eq> Eq for NodeRef<'a, N>[src]

impl<'a, N: Debug> Debug for NodeRef<'a, N>[src]

Auto Trait Implementations

impl<'a, N> Send for NodeRef<'a, N> where
    N: Sync

impl<'a, N> Unpin for NodeRef<'a, N>

impl<'a, N> Sync for NodeRef<'a, N> where
    N: Sync

impl<'a, N> UnwindSafe for NodeRef<'a, N> where
    N: RefUnwindSafe

impl<'a, N> RefUnwindSafe for NodeRef<'a, 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]