TryCollect

Trait TryCollect 

Source
pub trait TryCollect<T, E>: Iterator<Item = Result<T, E>> + Sized {
    // Provided method
    fn try_collect<B: Default + Extend<T>>(self) -> Result<B, E> { ... }
}

Provided Methods§

Source

fn try_collect<B: Default + Extend<T>>(self) -> Result<B, 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<T, E, I> TryCollect<T, E> for I
where I: Iterator<Item = Result<T, E>> + Sized,