AgreeableLandscape@lemmy.mlM to Rust Programming@lemmy.ml · 3 years ago"Rust needs evert(), which turns an iterator over Result of T into a Result of a collection of T or a collection of errors" Thoughts on this?cybre.spaceexternal-linkmessage-square4fedilinkarrow-up19arrow-down12
arrow-up17arrow-down1external-link"Rust needs evert(), which turns an iterator over Result of T into a Result of a collection of T or a collection of errors" Thoughts on this?cybre.spaceAgreeableLandscape@lemmy.mlM to Rust Programming@lemmy.ml · 3 years agomessage-square4fedilink
minus-squareMadlinkfedilinkarrow-up1·3 years agodo you mean Vec<Result<T, Error>>? why would an error type be the second type argument for a Vec?
do you mean
Vec<Result<T, Error>>
? why would an error type be the second type argument for aVec
?