Struct streaming_iterator::OnceWith [−][src]
pub struct OnceWith<T, F> { /* fields omitted */ }
A simple iterator that returns exactly one item from a function call.
Trait Implementations
impl<T: Clone, F: Clone> Clone for OnceWith<T, F>
[src]
impl<T: Clone, F: Clone> Clone for OnceWith<T, F>
[src]fn clone(&self) -> OnceWith<T, F>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, F: FnOnce() -> T> DoubleEndedStreamingIterator for OnceWith<T, F>
[src]
impl<T, F: FnOnce() -> T> DoubleEndedStreamingIterator for OnceWith<T, F>
[src]impl<T, F: FnOnce() -> T> DoubleEndedStreamingIteratorMut for OnceWith<T, F>
[src]
impl<T, F: FnOnce() -> T> DoubleEndedStreamingIteratorMut for OnceWith<T, F>
[src]impl<T, F: FnOnce() -> T> StreamingIterator for OnceWith<T, F>
[src]
impl<T, F: FnOnce() -> T> StreamingIterator for OnceWith<T, F>
[src]type Item = T
The type of the elements being iterated over.
fn advance(&mut self)
[src]
fn get(&self) -> Option<&Self::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<T, F: FnOnce() -> T> StreamingIteratorMut for OnceWith<T, F>
[src]
impl<T, F: FnOnce() -> T> StreamingIteratorMut for OnceWith<T, F>
[src]fn get_mut(&mut self) -> Option<&mut Self::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<T, F> Send for OnceWith<T, F> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<T, F> Sync for OnceWith<T, F> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<T, F> Unpin for OnceWith<T, F> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,