[−][src]Struct graphrepresentations::graph::NodeRef
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,
N: Sync,
impl<'a, N> Unpin for NodeRef<'a, N>
impl<'a, N> Sync for NodeRef<'a, N> where
N: Sync,
N: Sync,
impl<'a, N> UnwindSafe for NodeRef<'a, N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<'a, N> RefUnwindSafe for NodeRef<'a, N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,