this post was submitted on 17 Jan 2022
11 points (92.3% liked)
Rust Programming
8161 readers
6 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think she is talking about this functionality which already exists. It is not very intuitive though.
So it turns a
Vec<Result, Error>
intoResult<Vec<T>, Error>
, and you can turn it intoVec<T
> simply with?
. Otherwise you would probably need a for loop.do you mean
Vec<Result<T, Error>>
? why would an error type be the second type argument for aVec
?