Trait sp_std::iter::InPlaceIterable [−][src]
🔬 This is a nightly-only experimental API. (
inplace_iteration
)An iterator that when yielding an item will have taken at least one element
from its underlying SourceIter
.
Calling next()
guarantees that at least one value of the iterator's underlying source
has been moved out and the result of the iterator chain could be inserted in its place,
assuming structural constraints of the source allow such an insertion.
In other words this trait indicates that an iterator pipeline can be collected in place.
Implementations on Foreign Types
impl<I> InPlaceIterable for IntoIter<I>
[src]
Loading content...Implementors
impl<A, B> InPlaceIterable for Zip<A, B> where
A: InPlaceIterable,
B: Iterator,
<A as Iterator>::Item: Copy,
[src]
A: InPlaceIterable,
B: Iterator,
<A as Iterator>::Item: Copy,
impl<B, I, F> InPlaceIterable for FilterMap<I, F> where
F: FnMut(<I as Iterator>::Item) -> Option<B>,
I: InPlaceIterable,
[src]
F: FnMut(<I as Iterator>::Item) -> Option<B>,
I: InPlaceIterable,
impl<B, I, F> InPlaceIterable for Map<I, F> where
F: FnMut(<I as Iterator>::Item) -> B,
I: InPlaceIterable,
[src]
F: FnMut(<I as Iterator>::Item) -> B,
I: InPlaceIterable,
impl<B, I, P> InPlaceIterable for MapWhile<I, P> where
I: InPlaceIterable,
P: FnMut(<I as Iterator>::Item) -> Option<B>,
[src]
I: InPlaceIterable,
P: FnMut(<I as Iterator>::Item) -> Option<B>,
impl<I> InPlaceIterable for Enumerate<I> where
I: InPlaceIterable,
[src]
I: InPlaceIterable,
impl<I> InPlaceIterable for Fuse<I> where
I: InPlaceIterable,
[src]
I: InPlaceIterable,
impl<I> InPlaceIterable for Peekable<I> where
I: InPlaceIterable,
[src]
I: InPlaceIterable,
impl<I> InPlaceIterable for Skip<I> where
I: InPlaceIterable,
[src]
I: InPlaceIterable,
impl<I> InPlaceIterable for Take<I> where
I: InPlaceIterable,
[src]
I: InPlaceIterable,
impl<I, F> InPlaceIterable for Inspect<I, F> where
F: FnMut(&<I as Iterator>::Item),
I: InPlaceIterable,
[src]
F: FnMut(&<I as Iterator>::Item),
I: InPlaceIterable,
impl<I, F> InPlaceIterable for SkipWhile<I, F> where
F: FnMut(&<I as Iterator>::Item) -> bool,
I: InPlaceIterable,
[src]
F: FnMut(&<I as Iterator>::Item) -> bool,
I: InPlaceIterable,
impl<I, F> InPlaceIterable for TakeWhile<I, F> where
F: FnMut(&<I as Iterator>::Item) -> bool,
I: InPlaceIterable,
[src]
F: FnMut(&<I as Iterator>::Item) -> bool,
I: InPlaceIterable,
impl<I, P> InPlaceIterable for Filter<I, P> where
I: InPlaceIterable,
P: FnMut(&<I as Iterator>::Item) -> bool,
[src]
I: InPlaceIterable,
P: FnMut(&<I as Iterator>::Item) -> bool,
impl<St, F, B, I> InPlaceIterable for Scan<I, St, F> where
F: FnMut(&mut St, <I as Iterator>::Item) -> Option<B>,
I: InPlaceIterable,
[src]
F: FnMut(&mut St, <I as Iterator>::Item) -> Option<B>,
I: InPlaceIterable,
impl<T, A> InPlaceIterable for sp_std::vec::IntoIter<T, A> where
A: Allocator,
[src]
A: Allocator,