Struct MultiProduct
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct MultiProduct<I>(/* private field */)
where
I: Iterator + Clone,
I::Item: Clone,;
An iterator adaptor that iterates over the cartesian product of
multiple iterators of type I.
An iterator element type is Vec<I::Item>.
See .multi_cartesian_product()
for more information.
Trait Implementations
impl<I> Clone for MultiProduct<I>
where
I: Iterator + Clone + Clone,
I::Item: Clone,
fn clone(&self) -> Self
impl<I> Debug for MultiProduct<I>
where
I: Iterator + Clone + Debug,
I::Item: Clone + Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I> FusedIterator for MultiProduct<I>
where
I: Iterator + Clone,
I::Item: Clone,
impl<I> Iterator for MultiProduct<I>
where
I: Iterator + Clone,
I::Item: Clone,
type Item = Vec<<I as Iterator>::Item>;fn next(&mut self) -> Option<Self::Item>fn count(self) -> usizefn size_hint(&self) -> (usize, Option<usize>)fn last(self) -> Option<Self::Item>