[][src]Struct outils::tree::traversal::GeneralBfs

pub struct GeneralBfs<'tree, V, Ix = DefaultIndexType> where
    V: ValueType,
    Ix: IndexType
{ /* fields omitted */ }

Iterator over node contents and the corresponding node indices in breadth-first search order

Implementations

impl<'tree, V, Ix> GeneralBfs<'tree, V, Ix> where
    V: ValueType,
    Ix: IndexType
[src]

pub fn new(tree: &'tree dyn Traversable<V, Ix>, node: NodeIndex<Ix>) -> Self[src]

Construct an iterator over all nodes of the Traversable tree containing the tree node indexed by node

pub fn with_capacity(
    tree: &'tree dyn Traversable<V, Ix>,
    node: NodeIndex<Ix>,
    size_hint: usize
) -> Self
[src]

Construct an iterator over all nodes of the Traversable tree containing the tree node indexed by node. The argument stack_hint indicates the height of the Traversable tree to be iterated over, such that the internal stack does not need to be re-allocated.

Trait Implementations

impl<'tree, V, Ix> Iterator for GeneralBfs<'tree, V, Ix> where
    V: ValueType,
    Ix: IndexType
[src]

type Item = (NodeIndex<Ix>, &'tree V)

The type of the elements being iterated over.

Auto Trait Implementations

impl<'tree, V, Ix = usize> !RefUnwindSafe for GeneralBfs<'tree, V, Ix>

impl<'tree, V, Ix = usize> !Send for GeneralBfs<'tree, V, Ix>

impl<'tree, V, Ix = usize> !Sync for GeneralBfs<'tree, V, Ix>

impl<'tree, V, Ix> Unpin for GeneralBfs<'tree, V, Ix> where
    Ix: Unpin

impl<'tree, V, Ix = usize> !UnwindSafe for GeneralBfs<'tree, V, Ix>

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, 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>,