[−][src]Trait vecfold::VecFoldResult
Required methods
Loading content...Implementations on Foreign Types
impl<'a, T, E> VecFoldResult<'a, T, E> for Vec<Result<T, E>> where
T: Debug,
E: Error + Debug + 'a,
[src]
T: Debug,
E: Error + Debug + 'a,
Converts Vec<Result<T, E>> -> Result<Vec<&T>, &E> stopping on first error
If no error is found Vec<&T> foldr is equivalent of Ok(v.map(|x| x.unwrap())) If an error is found, the first error is returned and the vector is not walked further