[−][src]Struct rustc_data_structures::graph::implementation::DepthFirstTraversal

pub struct DepthFirstTraversal<'g, N, E> {
    graph: &'g Graph<N, E>,
    stack: Vec<NodeIndex>,
    visited: BitSet<usize>,
    direction: Direction,
}

Fields

graph: &'g Graph<N, E>stack: Vec<NodeIndex>visited: BitSet<usize>direction: Direction

Implementations

impl<'g, N: Debug, E: Debug> DepthFirstTraversal<'g, N, E>[src]

pub fn with_start_node(
    graph: &'g Graph<N, E>,
    start_node: NodeIndex,
    direction: Direction
) -> Self
[src]

pub(in graph::implementation) fn visit(
    &mut self,
    node: NodeIndex
)
[src]

Trait Implementations

impl<'g, N: Debug, E: Debug> ExactSizeIterator for DepthFirstTraversal<'g, N, E>[src]

impl<'g, N: Debug, E: Debug> Iterator for DepthFirstTraversal<'g, N, E>[src]

type Item = NodeIndex

The type of the elements being iterated over.

Auto Trait Implementations

impl<'g, N, E> RefUnwindSafe for DepthFirstTraversal<'g, N, E> where
    E: RefUnwindSafe,
    N: RefUnwindSafe, 

impl<'g, N, E> Send for DepthFirstTraversal<'g, N, E> where
    E: Sync,
    N: Sync, 

impl<'g, N, E> Sync for DepthFirstTraversal<'g, N, E> where
    E: Sync,
    N: Sync, 

impl<'g, N, E> Unpin for DepthFirstTraversal<'g, N, E>

impl<'g, N, E> UnwindSafe for DepthFirstTraversal<'g, N, E> where
    E: RefUnwindSafe,
    N: RefUnwindSafe, 

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<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator, 
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.