[][src]Struct acacia::iter::RecurseData

pub struct RecurseData<'a, T: 'a, R> { /* fields omitted */ }

An iterator over the objects in a tree, that only recurses as deep as specified by some predicate.

Implementations

impl<'a, T, R> RecurseData<'a, T, R>[src]

pub fn new(tree: &'a T, recurse: R) -> RecurseData<'a, T, R>[src]

Create a new iterator.

Trait Implementations

impl<'a, T, R> Iterator for RecurseData<'a, T, R> where
    T: Node<Container = Vec<T>> + AssociatedData,
    <T as Node>::Object: 'a,
    R: FnMut(&T) -> bool
[src]

type Item = &'a <T as AssociatedData>::Data

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, T, R> RefUnwindSafe for RecurseData<'a, T, R> where
    R: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, R> Send for RecurseData<'a, T, R> where
    R: Send,
    T: Sync

impl<'a, T, R> Sync for RecurseData<'a, T, R> where
    R: Sync,
    T: Sync

impl<'a, T, R> Unpin for RecurseData<'a, T, R> where
    R: Unpin

impl<'a, T, R> UnwindSafe for RecurseData<'a, T, R> where
    R: UnwindSafe,
    T: 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<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> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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