Trait IteratorUtils

Source
pub trait IteratorUtils: Iterator + Sized {
    // Required method
    fn find_map_or<T, F: FnMut(Self::Item) -> Option<T>>(
        self,
        f: F,
        fallback: T,
    ) -> T;
}

Required Methods§

Source

fn find_map_or<T, F: FnMut(Self::Item) -> Option<T>>( self, f: F, fallback: T, ) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§