[][src]Trait core::iter::InPlaceIterable

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.


impl<A: InPlaceIterable, B: Iterator> InPlaceIterable for Zip<A, B> where
    A::Item: Copy

impl<B, I: InPlaceIterable, F> InPlaceIterable for FilterMap<I, F> where
    F: FnMut(I::Item) -> Option<B>, 

impl<B, I: InPlaceIterable, F> InPlaceIterable for Map<I, F> where
    F: FnMut(I::Item) -> B, 

impl<B, I: InPlaceIterable, P> InPlaceIterable for MapWhile<I, P> where
    P: FnMut(I::Item) -> Option<B>, 

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

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

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

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

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

impl<I: InPlaceIterable, F> InPlaceIterable for Inspect<I, F> where
    F: FnMut(&I::Item), 

impl<I: InPlaceIterable, F> InPlaceIterable for SkipWhile<I, F> where
    F: FnMut(&I::Item) -> bool, 

impl<I: InPlaceIterable, F> InPlaceIterable for TakeWhile<I, F> where
    F: FnMut(&I::Item) -> bool, 

impl<I: InPlaceIterable, P> InPlaceIterable for Filter<I, P> where
    P: FnMut(&I::Item) -> bool, 

impl<St, F, B, I: InPlaceIterable> InPlaceIterable for Scan<I, St, F> where
    F: FnMut(&mut St, I::Item) -> Option<B>, 

Loading content...