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) -> usize
fn size_hint(&self) -> (usize, Option<usize>)
fn last(self) -> Option<Self::Item>

Auto Trait Implementations

impl<I> Freeze for MultiProduct<I> where <I as Iterator>::Item: Sized, Option<MultiProductInner<I>>: Freeze,

impl<I> RefUnwindSafe for MultiProduct<I> where <I as Iterator>::Item: Sized, Option<MultiProductInner<I>>: RefUnwindSafe,

impl<I> Send for MultiProduct<I> where <I as Iterator>::Item: Sized, Option<MultiProductInner<I>>: Send,

impl<I> Sync for MultiProduct<I> where <I as Iterator>::Item: Sized, Option<MultiProductInner<I>>: Sync,

impl<I> Unpin for MultiProduct<I> where <I as Iterator>::Item: Sized, Option<MultiProductInner<I>>: Unpin,

impl<I> UnsafeUnpin for MultiProduct<I> where <I as Iterator>::Item: Sized, Option<MultiProductInner<I>>: UnsafeUnpin,

impl<I> UnwindSafe for MultiProduct<I> where <I as Iterator>::Item: Sized, Option<MultiProductInner<I>>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for MultiProduct<I> where I: Iterator,

impl<T> Any for MultiProduct<I> where T: 'static + ?Sized,

impl<T> Borrow<T> for MultiProduct<I> where T: ?Sized,

impl<T> BorrowMut<T> for MultiProduct<I> where T: ?Sized,

impl<T> CloneToUninit for MultiProduct<I> where T: Clone,

impl<T> From<T> for MultiProduct<I>

impl<T> IntoEither for MultiProduct<I>

impl<T> Itertools for MultiProduct<I> where T: Iterator + ?Sized,

impl<T> ToOwned for MultiProduct<I> where T: Clone,

impl<T, U> Into<U> for MultiProduct<I> where U: From<T>,

impl<T, U> TryFrom<U> for MultiProduct<I> where U: Into<T>,

impl<T, U> TryInto<U> for MultiProduct<I> where U: TryFrom<T>,