Trait sp_std::iter::InPlaceIterable[][src]

pub unsafe trait InPlaceIterable: Iterator { }
🔬 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]

impl<B, I, F> InPlaceIterable for FilterMap<I, F> where
    F: FnMut(<I as Iterator>::Item) -> Option<B>,
    I: InPlaceIterable
[src]

impl<B, I, F> InPlaceIterable for Map<I, F> where
    F: FnMut(<I as Iterator>::Item) -> B,
    I: InPlaceIterable
[src]

impl<B, I, P> InPlaceIterable for MapWhile<I, P> where
    I: InPlaceIterable,
    P: FnMut(<I as Iterator>::Item) -> Option<B>, 
[src]

impl<I> InPlaceIterable for Enumerate<I> where
    I: InPlaceIterable
[src]

impl<I> InPlaceIterable for Fuse<I> where
    I: InPlaceIterable
[src]

impl<I> InPlaceIterable for Peekable<I> where
    I: InPlaceIterable
[src]

impl<I> InPlaceIterable for Skip<I> where
    I: InPlaceIterable
[src]

impl<I> InPlaceIterable for Take<I> where
    I: InPlaceIterable
[src]

impl<I, F> InPlaceIterable for Inspect<I, F> where
    F: FnMut(&<I as Iterator>::Item),
    I: InPlaceIterable
[src]

impl<I, F> InPlaceIterable for SkipWhile<I, F> where
    F: FnMut(&<I as Iterator>::Item) -> bool,
    I: InPlaceIterable
[src]

impl<I, F> InPlaceIterable for TakeWhile<I, F> where
    F: FnMut(&<I as Iterator>::Item) -> bool,
    I: InPlaceIterable
[src]

impl<I, P> InPlaceIterable for Filter<I, P> where
    I: InPlaceIterable,
    P: FnMut(&<I as Iterator>::Item) -> bool
[src]

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]

impl<T, A> InPlaceIterable for sp_std::vec::IntoIter<T, A> where
    A: Allocator
[src]

Loading content...