Trait std::iter::IteratorPairExtUnstable
[-]
[+]
[src]
pub trait IteratorPairExt<A, B>: Iterator<(A, B)> { fn unzip<FromA, FromB>(self) -> (FromA, FromB) { ... } }
Extention trait for iterators of pairs.
Provided Methods
fn unzip<FromA, FromB>(self) -> (FromA, FromB)
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
impl<A, B, I> IteratorPairExt<A, B> for I