by mcronce · 3y ago · 0 comments
let res = iterator.iter().map(|x| x.foo()).collect::<Result<Vec<_>, _>>()?;