pub fn fallible_find<T, E>(
iter: impl IntoIterator<Item = T>,
predicate: impl FnMut(&T) -> Result<bool, E>,
) -> Result<Option<T>, E>Expand description
Returns Ok(Some(item)) for the first element where the predicate returns
Ok(true), Ok(None) if no element satisfies it, or Err on the first
error.