Skip to main content

vec_try_map

Function vec_try_map 

Source
pub fn vec_try_map<T, U, E, F: Fn(T) -> Result<U, E>>(
    v: Vec<T>,
    f: F,
) -> Result<Vec<U>, E>
Expand description

Map a fallible function over a vector, returning early on error.