Struct streaming_iterator::Take [−][src]
pub struct Take<I> { /* fields omitted */ }
A streaming iterator which only yields a limited number of elements in a streaming iterator.
Trait Implementations
impl<I: Clone> Clone for Take<I>
[src]
impl<I: Clone> Clone for Take<I>
[src]fn clone(&self) -> Take<I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I> StreamingIterator for Take<I> where
I: StreamingIterator,
[src]
impl<I> StreamingIterator for Take<I> where
I: StreamingIterator,
[src]type Item = I::Item
The type of the elements being iterated over.
fn advance(&mut self)
[src]
fn get(&self) -> Option<&I::Item>
[src]
fn size_hint(&self) -> (usize, Option<usize>)
[src]
fn next(&mut self) -> Option<&Self::Item>
[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 fold<B, F>(self, init: B, f: F) -> B where
Self: Sized,
F: FnMut(B, &Self::Item) -> B,
[src]
Self: Sized,
F: FnMut(B, &Self::Item) -> B,
fn for_each<F>(self, f: F) where
Self: Sized,
F: FnMut(&Self::Item),
[src]
Self: Sized,
F: FnMut(&Self::Item),
impl<I> StreamingIteratorMut for Take<I> where
I: StreamingIteratorMut,
[src]
impl<I> StreamingIteratorMut for Take<I> where
I: StreamingIteratorMut,
[src]fn get_mut(&mut self) -> Option<&mut I::Item>
[src]
fn next_mut(&mut self) -> Option<&mut Self::Item>
[src]
fn fold_mut<B, F>(self, init: B, f: F) -> B where
Self: Sized,
F: FnMut(B, &mut Self::Item) -> B,
[src]
Self: Sized,
F: FnMut(B, &mut Self::Item) -> B,
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> Send for Take<I> where
I: Send,
I: Send,
impl<I> Sync for Take<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Take<I> where
I: Unpin,
I: Unpin,