Trait method lrs::iter::IteratorExt::map

Returns a new iterator that applies a function to all elements.

Syntax

fn map<T, F>(self, f: F) -> Map<T, F, Self>
   where F: FnMut(<Self as Iterator>::Item) -> T,

Arguments

NameDescription
f

The function that will be applied.