Crate fastpeek

source

Structs§

  • Provide Peek 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.
  • 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§

  • A trait for peeking the next value of an iterator.
  • Convenience trait for creating a Peek adapter. It is implemented for all iterators.
  • A trait for peeking the last value of an iterator.
  • A trait for peeking all values of an iterator.