[−][src]Trait nonogrid::utils::iter::FindOk
Provided methods
fn first_ok_with_error<B, E, F>(
&mut self,
on_empty_error: E,
f: F
) -> Result<B, E> where
Self: Sized,
F: FnMut(Self::Item) -> Result<B, E>,
&mut self,
on_empty_error: E,
f: F
) -> Result<B, E> where
Self: Sized,
F: FnMut(Self::Item) -> Result<B, E>,
Generalization of find_map
for Result
type.
If the iterator is exhausted, return on_empty_error
.
fn first_ok<B, E, F>(&mut self, f: F) -> Result<B, E> where
Self: Sized,
E: Default,
F: FnMut(Self::Item) -> Result<B, E>,
Self: Sized,
E: Default,
F: FnMut(Self::Item) -> Result<B, E>,
Generalization of find_map
for Result
type.
If the iterator is exhausted, return default error for provided E
type.