Trait IteratorExt
pub trait IteratorExt: Iterator {
// Provided method
fn chain_with<F, I>(
self,
f: F,
) -> ChainWith<Self, F, <I as IntoIterator>::IntoIter>
where Self: Sized,
F: FnOnce() -> I,
I: IntoIterator<Item = Self::Item> { ... }
}
Available on crate features
__ecma
and __utils
only.Provided Methods§
fn chain_with<F, I>(
self,
f: F,
) -> ChainWith<Self, F, <I as IntoIterator>::IntoIter>
fn chain_with<F, I>( self, f: F, ) -> ChainWith<Self, F, <I as IntoIterator>::IntoIter>
Copied from https://stackoverflow.com/a/49456265/6193633