[][src]Struct dep_graph::Resolver

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

Dependency graph resolver

Implementations

impl<N: Node> Resolver<N>[src]

pub fn new(nodes: &[N]) -> Resolver<N>[src]

pub fn for_each<F>(&self, func: F) -> Result<(), Error> where
    F: FnMut(&N::Inner), 
[src]

Sequential iteration over the list of dependencies, in correct order.

pub fn par_for_each<F>(&self, func: &'static F) -> Result<(), Error> where
    F: Fn(&N::Inner) + Send + Sync + 'static, 
[src]

Parallel iteration over the list of dependencies, in correct order.

Trait Implementations

impl<N: Clone + Node> Clone for Resolver<N> where
    N::Inner: Clone,
    N::Inner: Clone,
    N::Inner: Clone
[src]

impl<N: Debug + Node> Debug for Resolver<N> where
    N::Inner: Debug,
    N::Inner: Debug,
    N::Inner: Debug
[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Resolver<N> where
    <N as Node>::Inner: RefUnwindSafe

impl<N> Send for Resolver<N> where
    <N as Node>::Inner: Send + Sync

impl<N> Sync for Resolver<N> where
    <N as Node>::Inner: Send + Sync

impl<N> Unpin for Resolver<N> where
    <N as Node>::Inner: Unpin

impl<N> UnwindSafe for Resolver<N> where
    <N as Node>::Inner: 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.