Structs§
- Cloning
Peekable Iter - Provide Peek, PeekBack and PeekIter by cloning an iterator and calling next() to peek a value. This is useful for cheaply cloneable iterators, such as iterators that are backed by slices.
- FnPeekable
Iter - Provide Peek via a function. Additionally, PeekBack and PeekIter may be implemented by chaining FnPeekableIter::new, FnPeekableIter::with_peek_back and/or FnPeekableIter::with_peek_iter
- Prefetch
Peekable Iter - Provide Peek by using a similar strategy as [std::iter::Peekable]. Since self is not mutable in Peek::peek, this implementation eagerly fetches the value of next(). While this adapter defeats the main purpose of this crate, it may be useful in edge cases where you want to compose on Peek but have no other way of providing it.
Traits§
- Peek
- A trait for peeking the next value of an iterator.
- Peek
Adapters - Convenience trait for creating a Peek adapter. It is implemented for all iterators.
- Peek
Back - A trait for peeking the last value of an iterator.
- Peek
Iter - A trait for peeking all values of an iterator.