Trait core::iter::IteratorPairExtUnstable [-]  [+] [src]

pub trait IteratorPairExt<A, B>: Iterator<(A, B)> {
    fn unzip<FromA, FromB>(self) -> (FromA, FromB) where FromA: Default + Extend<A>, FromB: Default + Extend<B> { ... }
}

Extention trait for iterators of pairs.

Provided Methods

fn unzip<FromA, FromB>(self) -> (FromA, FromB) where FromA: Default + Extend<A>, FromB: Default + Extend<B>

Converts an iterator of pairs into a pair of containers.

Loops through the entire iterator, collecting the first component of each item into one new container, and the second component into another.

Implementors