pub trait IteratorExt<R, E>: Iterator<Item = Result<R, E>> {
// Provided methods
fn try_collect_vec(self) -> Result<Vec<R>, E>
where Self: Sized { ... }
fn try_collect_vecdeque(self) -> Result<VecDeque<R>, E>
where Self: Sized { ... }
fn try_collect_set(self) -> Result<HashSet<R>, E>
where Self: Sized,
R: Hash + Eq { ... }
}Provided Methods§
fn try_collect_vec(self) -> Result<Vec<R>, E>where
Self: Sized,
fn try_collect_vecdeque(self) -> Result<VecDeque<R>, E>where
Self: Sized,
fn try_collect_set(self) -> Result<HashSet<R>, E>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".