Trait StreamingIterator

Source
pub trait StreamingIterator<'a> {
    type Item;

    // Required method
    fn next(&'a mut self) -> Option<Self::Item>;
}
Expand description

An iterator trait that supports borrowing from the iterator, by allowing the argument lifetime to be named inside the associated type.

Required Associated Types§

Required Methods§

Source

fn next(&'a mut self) -> Option<Self::Item>

Implementors§

Source§

impl<'a, Iter, T> StreamingIterator<'a> for Iter
where Iter: Iterator<Item = T>,

Source§

type Item = T

Source§

impl<'arena, 'iter, T> StreamingIterator<'iter> for PostorderIter<'arena, T>
where T: IndexNode, 'arena: 'iter,