[−][src]Struct dep_graph::Node
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]
I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync,
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]
I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync,
impl<I: Debug> Debug for Node<I> where
I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync,
[src]
I: Clone + Debug + Eq + Hash + PartialEq + Send + Sync,
Auto Trait Implementations
impl<I> RefUnwindSafe for Node<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for Node<I>
impl<I> Sync for Node<I>
impl<I> Unpin for Node<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for Node<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,