Trait trie_rs::try_collect::TryCollect

source ·
pub trait TryCollect: Iterator {
    // Provided method
    fn try_collect<C, M>(self) -> Result<C, C::Error>
       where C: TryFromIterator<Self::Item, M>,
             Self: Sized { ... }
}
Expand description

Try to collect from an iterator; operation may fail.

Provided Methods§

source

fn try_collect<C, M>(self) -> Result<C, C::Error>
where C: TryFromIterator<Self::Item, M>, Self: Sized,

Use this iterator to collect into a container C, may fail.

Implementors§

source§

impl<T> TryCollect for T
where T: Iterator + ?Sized,