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) -> MultiProduct<I>

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,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

fn from(t: T) -> T

Returns the argument unchanged.

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,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>