Trait try_all::TryAllHack[][src]

pub trait TryAllHack {
    type Iter;
    type AllOrFirst;
    fn try_all(iter: Self::Iter) -> Self::AllOrFirst;
}
Expand description

A hack trait to bypass limitations of type checker.

We have to hack until rust-lang/rust#20400 is closed. CC: paholg.

Associated Types

Required methods

fn try_all(iter: Self::Iter) -> Self::AllOrFirst[src]

Implementations on Foreign Types

impl<T, I> TryAllHack for (I, Option<T>) where
    I: Iterator<Item = Option<T>>, 
[src]

type Iter = I

type AllOrFirst = Option<IntoIter<T>>

fn try_all(iter: Self::Iter) -> Self::AllOrFirst[src]

impl<T, E, I> TryAllHack for (I, Result<T, E>) where
    I: Iterator<Item = Result<T, E>>, 
[src]

type Iter = I

type AllOrFirst = Result<IntoIter<T>, E>

fn try_all(iter: Self::Iter) -> Self::AllOrFirst[src]

Implementors