Trait IterExt

Source
pub trait IterExt
where Self: Iterator,
{ // Required method fn map_result<F, RE, El>(self, f: F) -> Result<Vec<El>, RE> where Self: Sized + Clone, F: FnMut(<Self as Iterator>::Item) -> Result<El, RE>, RE: Debug; }
Expand description

Extension of iterator.

Required Methods§

Source

fn map_result<F, RE, El>(self, f: F) -> Result<Vec<El>, RE>
where Self: Sized + Clone, F: FnMut(<Self as Iterator>::Item) -> Result<El, RE>, RE: Debug,

Iterate each element and return core::Result::Err if any element is error.

§Errors

qqq: errors

Implementors§

Source§

impl<Iterator> IterExt for Iterator
where Iterator: Iterator,