Trait swc_plugin::utils::swc_common::util::iter::IteratorExt
source · [−]pub trait IteratorExt: Iterator {
fn chain_with<F, I>(
self,
f: F
) -> ChainWith<Self, F, <I as IntoIterator>::IntoIter>ⓘNotable traits for ChainWith<B, F, <I as IntoIterator>::IntoIter>impl<B, F, I> Iterator for ChainWith<B, F, <I as IntoIterator>::IntoIter> where
B: Iterator,
F: FnOnce() -> I,
I: IntoIterator<Item = <B as Iterator>::Item>, type Item = <I as IntoIterator>::Item;
where
F: FnOnce() -> I,
I: IntoIterator<Item = Self::Item>,
{ ... }
}
Provided Methods
fn chain_with<F, I>(
self,
f: F
) -> ChainWith<Self, F, <I as IntoIterator>::IntoIter>ⓘNotable traits for ChainWith<B, F, <I as IntoIterator>::IntoIter>impl<B, F, I> Iterator for ChainWith<B, F, <I as IntoIterator>::IntoIter> where
B: Iterator,
F: FnOnce() -> I,
I: IntoIterator<Item = <B as Iterator>::Item>, type Item = <I as IntoIterator>::Item;
where
F: FnOnce() -> I,
I: IntoIterator<Item = Self::Item>,
fn chain_with<F, I>(
self,
f: F
) -> ChainWith<Self, F, <I as IntoIterator>::IntoIter>ⓘNotable traits for ChainWith<B, F, <I as IntoIterator>::IntoIter>impl<B, F, I> Iterator for ChainWith<B, F, <I as IntoIterator>::IntoIter> where
B: Iterator,
F: FnOnce() -> I,
I: IntoIterator<Item = <B as Iterator>::Item>, type Item = <I as IntoIterator>::Item;
where
F: FnOnce() -> I,
I: IntoIterator<Item = Self::Item>,
B: Iterator,
F: FnOnce() -> I,
I: IntoIterator<Item = <B as Iterator>::Item>, type Item = <I as IntoIterator>::Item;
Copied from https://stackoverflow.com/a/49456265/6193633