Trait ToVecResult

Source
pub trait ToVecResult<T, E> {
    // Required method
    fn to_vec_result(self) -> Result<Vec<T>, E>;
}
Expand description

to_vec_result() method on iterators

Required Methods§

Source

fn to_vec_result(self) -> Result<Vec<T>, E>

this collects an iterator of Result<T,E> into a result of Result<Vec<T>,E>

Implementors§

Source§

impl<T, E, I> ToVecResult<T, E> for I
where I: Iterator<Item = Result<T, E>>,