fallible_any

Function fallible_any 

Source
pub fn fallible_any<T, E>(
    iter: impl IntoIterator<Item = T>,
    predicate: impl FnMut(T) -> Result<bool, E>,
) -> Result<bool, E>
Expand description

Returns Ok(true) if any element satisfies the fallible predicate, Ok(false) if none do. Returns Err on the first error encountered.