Skip to main content

Signature

Trait functions

peek

Returns a copy of the next() value without advancing the iterator. Like next, if there is a value, it is wrapped in a Some(T). But if the iteration is over, None is returned.

Signature

Examples

Basic usage: