[Pre-RFC] Peeking from Peekable with less unwrapping
Rust Internals [Unofficial]
April 13, 2026
While next_if_map is indeed useful, I couldn't come up with an implementation of next() for MergeIter (see the attached compiler explorer link) without a single unwrap. At least nothing straightforward comes to my mind.
Fully agree about the get_mut part, thanks.
Discussion in the ATmosphere