#![allow(unused)]fnmain() {
/// A trimmed-down version of the `std::Iterator` trait.pubtraitIterator {
typeItem;
fnnext(&mutself) -> Option<Self::Item>;
fnsize_hint(&self) -> (usize, Option<usize>);
}
/// An adaptation of `Iterator::find` to a free-functionpubfnfind<I, T, P>(iter: &mut I, predicate: P) -> Option<T>
where
I: Iterator<Item = T> + Sized,
P: FnMut(&T) -> bool;
}