Function foxbox_thinkerbell::util::map [] [src]

pub fn map<T, F, U, E>(vec: Vec<T>, cb: F) -> Result<Vec<U>, E> where F: Fn(T) -> Result<U, E>

Utility function. A variant of map that stops in case of error.