[][src]Struct radiate_matrix_tree::matrix_tree::iterators::InOrderIterator

pub struct InOrderIterator<'a> {
    pub stack: Vec<&'a Node>,
}

In order iterator for the tree. Keeps a vec to remember the current position of the tree during iteration.

Fields

stack: Vec<&'a Node>

Trait Implementations

impl<'a> Iterator for InOrderIterator<'a>[src]

Implement the in order iterator. Will call the next function and fall down the left side of the tree till there is no left child, that is the yielded node. The add the right child and continue iterating.

type Item = &'a Node

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for InOrderIterator<'a>

impl<'a> Send for InOrderIterator<'a>

impl<'a> Sync for InOrderIterator<'a>

impl<'a> Unpin for InOrderIterator<'a>

impl<'a> UnwindSafe for InOrderIterator<'a>

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<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<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,