map

Function map 

Source
pub fn map<T: 'static, J: 'static>(
    iter: Box<dyn Iterator<Item = Result<T, Error>>>,
    pred: fn(T) -> Result<J, Error>,
) -> Box<dyn Iterator<Item = Result<J, Error>>>