peepable
peepable is a Rust look-alike for Peekable.
It behaves slightly different as it eagerly loads the next value in the Iterator.
This allows .peep() to be called on an immutable reference, saving you from the
borrow checker.
Example
use Iterator;
use Peepable;
let mut iter = vec!.into_iter;
// Note, this is not "mut peeper"!
let peeper = new;
assert_eq!;
// When mutable, we can use it as a normal iterator.
let mut peeper = peeper;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
License
peepable is licensed under the MIT license.