Module iter_util

Module iter_util 

Source
Expand description

Iterator helpers.

Functionsยง

fallible_any
Returns Ok(true) if any element satisfies the fallible predicate, Ok(false) if none do. Returns Err on the first error encountered.
fallible_find
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.
fallible_position
Returns Ok(Some(index)) for the first element where the predicate returns Ok(true), Ok(None) if no element satisfies it, or Err on the first error.