resiter

Trait Process

Source
pub trait Process<T> {
    // Required method
    fn process<R: Default, E, F>(self, f: F) -> Result<R, E>
       where F: Fn(T) -> Result<R, E>;
}
Expand description

Extend any Iterator with a process method, equivalent to a fallible for_each.

Required Methods§

Source

fn process<R: Default, E, F>(self, f: F) -> Result<R, E>
where F: Fn(T) -> Result<R, E>,

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§

Source§

impl<I: Iterator> Process<<I as Iterator>::Item> for I