pub trait IterUtilsExt: Iterator {
// Provided methods
fn ex_find_map<F, R>(&mut self, f: F) -> Option<R>
where F: FnMut(Self::Item) -> Option<R> { ... }
fn ex_rfind_map<F, R>(&mut self, f: F) -> Option<R>
where F: FnMut(Self::Item) -> Option<R>,
Self: DoubleEndedIterator { ... }
}Provided Methods§
Sourcefn ex_find_map<F, R>(&mut self, f: F) -> Option<R>
fn ex_find_map<F, R>(&mut self, f: F) -> Option<R>
Return the first element that maps to Some(_), or None if the iterator
was exhausted.
Sourcefn ex_rfind_map<F, R>(&mut self, f: F) -> Option<R>
fn ex_rfind_map<F, R>(&mut self, f: F) -> Option<R>
Return the last element from the back that maps to Some(_), or
None if the iterator was exhausted.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".