[][src]Struct dep_graph::Node

pub struct Node<I> where
    I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync
{ /* fields omitted */ }

Single node in a dependency graph, which might have dependencies or be be used as a dependency by other nodes.

A node is represented by a unique identifier and may contain a list of dependencies.

Implementations

impl<I> Node<I> where
    I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync
[src]

pub fn new(id: I) -> Node<I>[src]

pub fn id(&self) -> &I[src]

pub fn deps(&self) -> &HashSet<I>[src]

pub fn add_dep(&mut self, dep: I)[src]

Trait Implementations

impl<I: Clone> Clone for Node<I> where
    I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync
[src]

impl<I: Debug> Debug for Node<I> where
    I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync
[src]

Auto Trait Implementations

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

impl<I> Send for Node<I>

impl<I> Sync for Node<I>

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

impl<I> UnwindSafe for Node<I> where
    I: 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.