Struct Product
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Product<I, J>
where
I: Iterator, { /* private fields */ }
An iterator adaptor that iterates over the cartesian product of
the element sets of two iterators I and J.
Iterator element type is (I::Item, J::Item).
See .cartesian_product() for more information.
Trait Implementations
impl<I, J> FusedIterator for Product<I, J>
where
I: FusedIterator,
J: Clone + FusedIterator,
I::Item: Clone,
impl<I, J> Iterator for Product<I, J>
where
I: Iterator,
J: Clone + Iterator,
I::Item: Clone,
type Item = (<I as Iterator>::Item, <J as Iterator>::Item);fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<Acc, G>(self, accum: Acc, f: G) -> Acc where G: FnMut(Acc, Self::Item) -> Acc,
impl<I, J: Clone> Clone for Product<I, J>
where
I: Iterator + Clone,
I::Item: Clone,
fn clone(&self) -> Self
impl<I, J: Debug> Debug for Product<I, J>
where
I: Iterator + Debug,
I::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result