Trait sp_std::iter::FusedIterator 1.26.0[−][src]
An iterator that always continues to yield None
when exhausted.
Calling next on a fused iterator that has returned None
once is guaranteed
to return None
again. This trait should be implemented by all iterators
that behave this way because it allows optimizing Iterator::fuse()
.
Note: In general, you should not use FusedIterator
in generic bounds if
you need a fused iterator. Instead, you should just call Iterator::fuse()
on the iterator. If the iterator is already fused, the additional Fuse
wrapper will be a no-op with no performance penalty.
Implementations on Foreign Types
impl<'_, T, S> FusedIterator for SymmetricDifference<'_, T, S> where
T: Eq + Hash,
S: BuildHasher,
[src]
T: Eq + Hash,
S: BuildHasher,
impl<'_, K, V> FusedIterator for Values<'_, K, V>
[src]
impl<'_, T, S> FusedIterator for Difference<'_, T, S> where
T: Eq + Hash,
S: BuildHasher,
[src]
T: Eq + Hash,
S: BuildHasher,
impl<'_, K> FusedIterator for Drain<'_, K>
[src]
impl<'_, T, S> FusedIterator for Union<'_, T, S> where
T: Eq + Hash,
S: BuildHasher,
[src]
T: Eq + Hash,
S: BuildHasher,
impl<'_, K, V> FusedIterator for Iter<'_, K, V>
[src]
impl<'_> FusedIterator for Ancestors<'_>
[src]
impl<'_, K, V> FusedIterator for Keys<'_, K, V>
[src]
impl<'_> FusedIterator for Iter<'_>
[src]
impl<'_, K, V> FusedIterator for IterMut<'_, K, V>
[src]
impl<'_, K, V, F> FusedIterator for DrainFilter<'_, K, V, F> where
F: FnMut(&K, &mut V) -> bool,
[src]
F: FnMut(&K, &mut V) -> bool,
impl<K, V> FusedIterator for IntoValues<K, V>
[src]
impl<'_, T, S> FusedIterator for Intersection<'_, T, S> where
T: Eq + Hash,
S: BuildHasher,
[src]
T: Eq + Hash,
S: BuildHasher,
impl<'_, K, V> FusedIterator for ValuesMut<'_, K, V>
[src]
impl<K, V> FusedIterator for IntoIter<K, V>
[src]
impl<'_, K, V> FusedIterator for Drain<'_, K, V>
[src]
impl<K> FusedIterator for IntoIter<K>
[src]
impl<K, V> FusedIterator for IntoKeys<K, V>
[src]
impl<'_, K, F> FusedIterator for DrainFilter<'_, K, F> where
F: FnMut(&K) -> bool,
[src]
F: FnMut(&K) -> bool,
impl<'_> FusedIterator for Components<'_>
[src]
impl<'_, K> FusedIterator for Iter<'_, K>
[src]
impl<A> FusedIterator for IntoIter<A>
[src]
impl FusedIterator for ToUppercase
[src]
impl FusedIterator for EscapeUnicode
[src]
impl FusedIterator for ToLowercase
[src]
impl<'_, A> FusedIterator for Iter<'_, A>
[src]
impl<'_, T, P> FusedIterator for SplitInclusiveMut<'_, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<'_, T, P> FusedIterator for SplitInclusive<'_, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<'_, A> FusedIterator for IterMut<'_, A>
[src]
impl FusedIterator for EscapeDefault
[src]
impl FusedIterator for EscapeDefault
[src]
impl<'_, I> FusedIterator for &'_ mut I where
I: FusedIterator + ?Sized,
[src]
I: FusedIterator + ?Sized,
impl FusedIterator for EscapeDebug
[src]
impl<T, const N: usize> FusedIterator for IntoIter<T, N>
[src]
impl<'_> FusedIterator for Drain<'_>
[src]
impl<'_, T> FusedIterator for Drain<'_, T>
[src]
impl<'_, T> FusedIterator for Iter<'_, T>
[src]
impl<T> FusedIterator for IntoIter<T>
[src]
impl<T> FusedIterator for IntoIter<T>
[src]
impl<'_, T> FusedIterator for Iter<'_, T>
[src]
impl<T> FusedIterator for IntoIterSorted<T> where
T: Ord,
[src]
T: Ord,
impl<'_, T> FusedIterator for DrainSorted<'_, T> where
T: Ord,
[src]
T: Ord,
impl<'_, T> FusedIterator for IterMut<'_, T>
[src]
Loading content...Implementors
impl<'_> FusedIterator for Bytes<'_>
[src]
impl<'_> FusedIterator for CharIndices<'_>
[src]
impl<'_> FusedIterator for Chars<'_>
[src]
impl<'_> FusedIterator for EncodeUtf16<'_>
[src]
impl<'_> FusedIterator for Lines<'_>
[src]
impl<'_> FusedIterator for LinesAny<'_>
[src]
impl<'_> FusedIterator for SplitAsciiWhitespace<'_>
1.34.0[src]
impl<'_> FusedIterator for SplitWhitespace<'_>
[src]
impl<'_, K, V> FusedIterator for sp_std::collections::btree_map::Iter<'_, K, V>
[src]
impl<'_, K, V> FusedIterator for sp_std::collections::btree_map::IterMut<'_, K, V>
[src]
impl<'_, K, V> FusedIterator for sp_std::collections::btree_map::Keys<'_, K, V>
[src]
impl<'_, K, V> FusedIterator for sp_std::collections::btree_map::Range<'_, K, V>
[src]
impl<'_, K, V> FusedIterator for RangeMut<'_, K, V>
[src]
impl<'_, K, V> FusedIterator for sp_std::collections::btree_map::Values<'_, K, V>
[src]
impl<'_, K, V> FusedIterator for sp_std::collections::btree_map::ValuesMut<'_, K, V>
[src]
impl<'_, K, V, F> FusedIterator for sp_std::collections::btree_map::DrainFilter<'_, K, V, F> where
F: FnMut(&K, &mut V) -> bool,
[src]
F: FnMut(&K, &mut V) -> bool,
impl<'_, T> FusedIterator for sp_std::collections::btree_set::Difference<'_, T> where
T: Ord,
[src]
T: Ord,
impl<'_, T> FusedIterator for sp_std::collections::btree_set::Intersection<'_, T> where
T: Ord,
[src]
T: Ord,
impl<'_, T> FusedIterator for sp_std::collections::btree_set::Iter<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::collections::btree_set::Range<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::collections::btree_set::SymmetricDifference<'_, T> where
T: Ord,
[src]
T: Ord,
impl<'_, T> FusedIterator for sp_std::collections::btree_set::Union<'_, T> where
T: Ord,
[src]
T: Ord,
impl<'_, T> FusedIterator for sp_std::collections::vec_deque::Drain<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::collections::vec_deque::Iter<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::collections::vec_deque::IterMut<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::result::Iter<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::result::IterMut<'_, T>
[src]
impl<'_, T> FusedIterator for Chunks<'_, T>
[src]
impl<'_, T> FusedIterator for ChunksExact<'_, T>
1.31.0[src]
impl<'_, T> FusedIterator for ChunksExactMut<'_, T>
1.31.0[src]
impl<'_, T> FusedIterator for ChunksMut<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::slice::Iter<'_, T>
[src]
impl<'_, T> FusedIterator for sp_std::slice::IterMut<'_, T>
[src]
impl<'_, T> FusedIterator for RChunks<'_, T>
1.31.0[src]
impl<'_, T> FusedIterator for RChunksExact<'_, T>
1.31.0[src]
impl<'_, T> FusedIterator for RChunksExactMut<'_, T>
1.31.0[src]
impl<'_, T> FusedIterator for RChunksMut<'_, T>
1.31.0[src]
impl<'_, T> FusedIterator for Windows<'_, T>
[src]
impl<'_, T, A> FusedIterator for sp_std::vec::Drain<'_, T, A> where
A: Allocator,
[src]
A: Allocator,
impl<'_, T, F> FusedIterator for sp_std::collections::btree_set::DrainFilter<'_, T, F> where
F: FnMut(&T) -> bool,
[src]
F: FnMut(&T) -> bool,
impl<'_, T, P> FusedIterator for sp_std::slice::RSplit<'_, T, P> where
P: FnMut(&T) -> bool,
1.27.0[src]
P: FnMut(&T) -> bool,
impl<'_, T, P> FusedIterator for RSplitMut<'_, T, P> where
P: FnMut(&T) -> bool,
1.27.0[src]
P: FnMut(&T) -> bool,
impl<'_, T, P> FusedIterator for sp_std::slice::Split<'_, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<'_, T, P> FusedIterator for SplitMut<'_, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<'_, T, const N: usize> FusedIterator for ArrayChunks<'_, T, N>
[src]
impl<'_, T, const N: usize> FusedIterator for ArrayChunksMut<'_, T, N>
[src]
impl<'a> FusedIterator for sp_std::str::EscapeDebug<'a>
1.34.0[src]
impl<'a> FusedIterator for sp_std::str::EscapeDefault<'a>
1.34.0[src]
impl<'a> FusedIterator for sp_std::str::EscapeUnicode<'a>
1.34.0[src]
impl<'a, I, T> FusedIterator for Cloned<I> where
T: 'a + Clone,
I: FusedIterator<Item = &'a T>,
[src]
T: 'a + Clone,
I: FusedIterator<Item = &'a T>,
impl<'a, I, T> FusedIterator for Copied<I> where
T: 'a + Copy,
I: FusedIterator<Item = &'a T>,
1.36.0[src]
T: 'a + Copy,
I: FusedIterator<Item = &'a T>,
impl<'a, P> FusedIterator for MatchIndices<'a, P> where
P: Pattern<'a>,
[src]
P: Pattern<'a>,
impl<'a, P> FusedIterator for Matches<'a, P> where
P: Pattern<'a>,
[src]
P: Pattern<'a>,
impl<'a, P> FusedIterator for RMatchIndices<'a, P> where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
[src]
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
impl<'a, P> FusedIterator for RMatches<'a, P> where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
[src]
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
impl<'a, P> FusedIterator for sp_std::str::RSplit<'a, P> where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
[src]
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
impl<'a, P> FusedIterator for sp_std::str::RSplitN<'a, P> where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
[src]
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
impl<'a, P> FusedIterator for RSplitTerminator<'a, P> where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
[src]
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,
impl<'a, P> FusedIterator for sp_std::str::Split<'a, P> where
P: Pattern<'a>,
[src]
P: Pattern<'a>,
impl<'a, P> FusedIterator for sp_std::str::SplitN<'a, P> where
P: Pattern<'a>,
[src]
P: Pattern<'a>,
impl<'a, P> FusedIterator for SplitTerminator<'a, P> where
P: Pattern<'a>,
[src]
P: Pattern<'a>,
impl<'a, T, P> FusedIterator for GroupBy<'a, T, P> where
T: 'a,
P: FnMut(&T, &T) -> bool,
[src]
T: 'a,
P: FnMut(&T, &T) -> bool,
impl<'a, T, P> FusedIterator for GroupByMut<'a, T, P> where
T: 'a,
P: FnMut(&T, &T) -> bool,
[src]
T: 'a,
P: FnMut(&T, &T) -> bool,
impl<'a, T, P> FusedIterator for sp_std::slice::RSplitN<'a, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<'a, T, P> FusedIterator for RSplitNMut<'a, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<'a, T, P> FusedIterator for sp_std::slice::SplitN<'a, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<'a, T, P> FusedIterator for SplitNMut<'a, T, P> where
P: FnMut(&T) -> bool,
[src]
P: FnMut(&T) -> bool,
impl<A> FusedIterator for Repeat<A> where
A: Clone,
[src]
A: Clone,
impl<A> FusedIterator for sp_std::ops::Range<A> where
A: Step,
[src]
A: Step,
impl<A> FusedIterator for RangeFrom<A> where
A: Step,
[src]
A: Step,
impl<A> FusedIterator for RangeInclusive<A> where
A: Step,
[src]
A: Step,
impl<A, B> FusedIterator for Chain<A, B> where
A: FusedIterator,
B: FusedIterator<Item = <A as Iterator>::Item>,
[src]
A: FusedIterator,
B: FusedIterator<Item = <A as Iterator>::Item>,
impl<A, B> FusedIterator for Zip<A, B> where
A: FusedIterator,
B: FusedIterator,
[src]
A: FusedIterator,
B: FusedIterator,
impl<A, F> FusedIterator for OnceWith<F> where
F: FnOnce() -> A,
1.43.0[src]
F: FnOnce() -> A,
impl<A, F> FusedIterator for RepeatWith<F> where
F: FnMut() -> A,
1.28.0[src]
F: FnMut() -> A,
impl<B, I, F> FusedIterator for FilterMap<I, F> where
F: FnMut(<I as Iterator>::Item) -> Option<B>,
I: FusedIterator,
[src]
F: FnMut(<I as Iterator>::Item) -> Option<B>,
I: FusedIterator,
impl<B, I, F> FusedIterator for Map<I, F> where
F: FnMut(<I as Iterator>::Item) -> B,
I: FusedIterator,
[src]
F: FnMut(<I as Iterator>::Item) -> B,
I: FusedIterator,
impl<I> FusedIterator for Cycle<I> where
I: Clone + Iterator,
[src]
I: Clone + Iterator,
impl<I> FusedIterator for Enumerate<I> where
I: FusedIterator,
[src]
I: FusedIterator,
impl<I> FusedIterator for Fuse<I> where
I: Iterator,
[src]
I: Iterator,
impl<I> FusedIterator for Peekable<I> where
I: FusedIterator,
[src]
I: FusedIterator,
impl<I> FusedIterator for Rev<I> where
I: FusedIterator + DoubleEndedIterator,
[src]
I: FusedIterator + DoubleEndedIterator,
impl<I> FusedIterator for Skip<I> where
I: FusedIterator,
[src]
I: FusedIterator,
impl<I> FusedIterator for Take<I> where
I: FusedIterator,
[src]
I: FusedIterator,
impl<I, A> FusedIterator for Box<I, A> where
A: Allocator,
I: FusedIterator + ?Sized,
[src]
A: Allocator,
I: FusedIterator + ?Sized,
impl<I, F> FusedIterator for Inspect<I, F> where
F: FnMut(&<I as Iterator>::Item),
I: FusedIterator,
[src]
F: FnMut(&<I as Iterator>::Item),
I: FusedIterator,
impl<I, P> FusedIterator for Filter<I, P> where
I: FusedIterator,
P: FnMut(&<I as Iterator>::Item) -> bool,
[src]
I: FusedIterator,
P: FnMut(&<I as Iterator>::Item) -> bool,
impl<I, P> FusedIterator for SkipWhile<I, P> where
I: FusedIterator,
P: FnMut(&<I as Iterator>::Item) -> bool,
[src]
I: FusedIterator,
P: FnMut(&<I as Iterator>::Item) -> bool,
impl<I, P> FusedIterator for TakeWhile<I, P> where
I: FusedIterator,
P: FnMut(&<I as Iterator>::Item) -> bool,
[src]
I: FusedIterator,
P: FnMut(&<I as Iterator>::Item) -> bool,
impl<I, U> FusedIterator for Flatten<I> where
I: FusedIterator,
U: Iterator,
<I as Iterator>::Item: IntoIterator,
<<I as Iterator>::Item as IntoIterator>::IntoIter == U,
<<I as Iterator>::Item as IntoIterator>::Item == <U as Iterator>::Item,
1.29.0[src]
I: FusedIterator,
U: Iterator,
<I as Iterator>::Item: IntoIterator,
<<I as Iterator>::Item as IntoIterator>::IntoIter == U,
<<I as Iterator>::Item as IntoIterator>::Item == <U as Iterator>::Item,
impl<I, U, F> FusedIterator for FlatMap<I, U, F> where
F: FnMut(<I as Iterator>::Item) -> U,
I: FusedIterator,
U: IntoIterator,
[src]
F: FnMut(<I as Iterator>::Item) -> U,
I: FusedIterator,
U: IntoIterator,
impl<K, V> FusedIterator for sp_std::collections::btree_map::IntoIter<K, V>
[src]
impl<K, V> FusedIterator for sp_std::collections::btree_map::IntoKeys<K, V>
[src]
impl<K, V> FusedIterator for sp_std::collections::btree_map::IntoValues<K, V>
[src]
impl<T> FusedIterator for sp_std::collections::btree_set::IntoIter<T>
[src]
impl<T> FusedIterator for sp_std::collections::vec_deque::IntoIter<T>
[src]
impl<T> FusedIterator for Empty<T>
[src]
impl<T> FusedIterator for Once<T>
[src]
impl<T> FusedIterator for sp_std::result::IntoIter<T>
[src]
impl<T, A> FusedIterator for sp_std::vec::IntoIter<T, A> where
A: Allocator,
[src]
A: Allocator,
impl<T, F> FusedIterator for Successors<T, F> where
F: FnMut(&T) -> Option<T>,
1.34.0[src]
F: FnMut(&T) -> Option<T>,