[][src]Struct daggy::walker::Recursive

pub struct Recursive<G, Ix, F> { /* fields omitted */ }

Recursively walks a graph using the recursive function recursive_fn.

Implementations

impl<G, Ix, F> Recursive<G, Ix, F>[src]

pub fn new(start: NodeIndex<Ix>, recursive_fn: F) -> Self where
    Ix: IndexType,
    F: FnMut(&G, NodeIndex<Ix>) -> Option<IndexPair<Ix>>, 
[src]

Construct a new Recursive Walker starting from the node at the given index.

Trait Implementations

impl<G: Clone, Ix: Clone, F: Clone> Clone for Recursive<G, Ix, F>[src]

impl<G: Debug, Ix: Debug, F: Debug> Debug for Recursive<G, Ix, F>[src]

impl<G, Ix, F> Walker<G> for Recursive<G, Ix, F> where
    Ix: IndexType,
    F: FnMut(&G, NodeIndex<Ix>) -> Option<IndexPair<Ix>>, 
[src]

type Index = Ix

The unsigned integer type used for node and edge indices.

Auto Trait Implementations

impl<G, Ix, F> RefUnwindSafe for Recursive<G, Ix, F> where
    F: RefUnwindSafe,
    G: RefUnwindSafe,
    Ix: RefUnwindSafe

impl<G, Ix, F> Send for Recursive<G, Ix, F> where
    F: Send,
    G: Send,
    Ix: Send

impl<G, Ix, F> Sync for Recursive<G, Ix, F> where
    F: Sync,
    G: Sync,
    Ix: Sync

impl<G, Ix, F> Unpin for Recursive<G, Ix, F> where
    F: Unpin,
    G: Unpin,
    Ix: Unpin

impl<G, Ix, F> UnwindSafe for Recursive<G, Ix, F> where
    F: UnwindSafe,
    G: UnwindSafe,
    Ix: 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.