Struct streaming_iterator::FlatMap [−][src]
pub struct FlatMap<I, J, F> { /* fields omitted */ }
A streaming iterator that maps elements to iterators with a closure and then yields the concatenation of the obtained iterators
Trait Implementations
impl<I, J, F> StreamingIterator for FlatMap<I, J, F> where
I: StreamingIterator,
F: FnMut(&I::Item) -> J,
J: StreamingIterator,
[src]
impl<I, J, F> StreamingIterator for FlatMap<I, J, F> where
I: StreamingIterator,
F: FnMut(&I::Item) -> J,
J: StreamingIterator,
[src]type Item = J::Item
The type of the elements being iterated over.
fn advance(&mut self)
[src]
fn get(&self) -> Option<&Self::Item>
[src]
fn fold<Acc, Fold>(self, init: Acc, fold: Fold) -> Acc where
Self: Sized,
Fold: FnMut(Acc, &Self::Item) -> Acc,
[src]
Self: Sized,
Fold: FnMut(Acc, &Self::Item) -> Acc,
fn next(&mut self) -> Option<&Self::Item>
[src]
fn size_hint(&self) -> (usize, Option<usize>)
[src]
fn all<F>(&mut self, f: F) -> bool where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn any<F>(&mut self, f: F) -> bool where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn by_ref(&mut self) -> &mut Self where
Self: Sized,
[src]
Self: Sized,
fn chain<I>(self, other: I) -> Chain<Self, I> where
Self: Sized,
I: StreamingIterator<Item = Self::Item> + Sized,
[src]
Self: Sized,
I: StreamingIterator<Item = Self::Item> + Sized,
fn cloned(self) -> Cloned<Self>ⓘ where
Self: Sized,
Self::Item: Clone,
[src]
Self: Sized,
Self::Item: Clone,
fn count(self) -> usize where
Self: Sized,
[src]
Self: Sized,
fn filter<F>(self, f: F) -> Filter<Self, F> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, B, F> where
Self: Sized,
F: FnMut(&Self::Item) -> Option<B>,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> Option<B>,
fn flat_map<J, F>(self, f: F) -> FlatMap<Self, J, F> where
Self: Sized,
J: StreamingIterator,
F: FnMut(&Self::Item) -> J,
[src]
Self: Sized,
J: StreamingIterator,
F: FnMut(&Self::Item) -> J,
fn filter_map_deref<B, F>(self, f: F) -> FilterMapDeref<Self, F>ⓘNotable traits for FilterMapDeref<I, F>
impl<I, B, F> Iterator for FilterMapDeref<I, F> where
I: StreamingIterator,
F: FnMut(&I::Item) -> Option<B>, type Item = B;
where
Self: Sized,
F: FnMut(&Self::Item) -> Option<B>,
[src]
Notable traits for FilterMapDeref<I, F>
impl<I, B, F> Iterator for FilterMapDeref<I, F> where
I: StreamingIterator,
F: FnMut(&I::Item) -> Option<B>, type Item = B;
Self: Sized,
F: FnMut(&Self::Item) -> Option<B>,
fn find<F>(&mut self, f: F) -> Option<&Self::Item> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn fuse(self) -> Fuse<Self> where
Self: Sized,
[src]
Self: Sized,
fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnMut(&Self::Item),
Self: Sized,
[src]
F: FnMut(&Self::Item),
Self: Sized,
fn map<B, F>(self, f: F) -> Map<Self, B, F> where
Self: Sized,
F: FnMut(&Self::Item) -> B,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> B,
fn map_deref<B, F>(self, f: F) -> MapDeref<Self, F>ⓘ where
Self: Sized,
F: FnMut(&Self::Item) -> B,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> B,
fn map_ref<B: ?Sized, F>(self, f: F) -> MapRef<Self, F> where
Self: Sized,
F: Fn(&Self::Item) -> &B,
[src]
Self: Sized,
F: Fn(&Self::Item) -> &B,
fn nth(&mut self, n: usize) -> Option<&Self::Item>
[src]
fn position<F>(&mut self, f: F) -> Option<usize> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn skip(self, n: usize) -> Skip<Self> where
Self: Sized,
[src]
Self: Sized,
fn skip_while<F>(self, f: F) -> SkipWhile<Self, F> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn take(self, n: usize) -> Take<Self> where
Self: Sized,
[src]
Self: Sized,
fn take_while<F>(self, f: F) -> TakeWhile<Self, F> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn rev(self) -> Rev<Self> where
Self: Sized + DoubleEndedStreamingIterator,
[src]
Self: Sized + DoubleEndedStreamingIterator,
fn for_each<F>(self, f: F) where
Self: Sized,
F: FnMut(&Self::Item),
[src]
Self: Sized,
F: FnMut(&Self::Item),
impl<I, J, F> StreamingIteratorMut for FlatMap<I, J, F> where
I: StreamingIterator,
F: FnMut(&I::Item) -> J,
J: StreamingIteratorMut,
[src]
impl<I, J, F> StreamingIteratorMut for FlatMap<I, J, F> where
I: StreamingIterator,
F: FnMut(&I::Item) -> J,
J: StreamingIteratorMut,
[src]fn get_mut(&mut self) -> Option<&mut Self::Item>
[src]
fn fold_mut<Acc, Fold>(self, init: Acc, fold: Fold) -> Acc where
Self: Sized,
Fold: FnMut(Acc, &mut Self::Item) -> Acc,
[src]
Self: Sized,
Fold: FnMut(Acc, &mut Self::Item) -> Acc,
fn next_mut(&mut self) -> Option<&mut Self::Item>
[src]
fn for_each_mut<F>(self, f: F) where
Self: Sized,
F: FnMut(&mut Self::Item),
[src]
Self: Sized,
F: FnMut(&mut Self::Item),
fn map_deref_mut<B, F>(self, f: F) -> MapDerefMut<Self, F>ⓘNotable traits for MapDerefMut<I, F>
impl<I, B, F> Iterator for MapDerefMut<I, F> where
I: StreamingIteratorMut,
F: FnMut(&mut I::Item) -> B, type Item = B;
where
Self: Sized,
F: FnMut(&mut Self::Item) -> B,
[src]
Notable traits for MapDerefMut<I, F>
impl<I, B, F> Iterator for MapDerefMut<I, F> where
I: StreamingIteratorMut,
F: FnMut(&mut I::Item) -> B, type Item = B;
Self: Sized,
F: FnMut(&mut Self::Item) -> B,
fn find_mut<F>(&mut self, f: F) -> Option<&mut Self::Item> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
Auto Trait Implementations
impl<I, J, F> Send for FlatMap<I, J, F> where
F: Send,
I: Send,
J: Send,
F: Send,
I: Send,
J: Send,
impl<I, J, F> Sync for FlatMap<I, J, F> where
F: Sync,
I: Sync,
J: Sync,
F: Sync,
I: Sync,
J: Sync,
impl<I, J, F> Unpin for FlatMap<I, J, F> where
F: Unpin,
I: Unpin,
J: Unpin,
F: Unpin,
I: Unpin,
J: Unpin,