Struct Permutations

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Permutations<I: Iterator> { /* private fields */ }

An iterator adaptor that iterates through all the k-permutations of the elements from an iterator.

See .permutations() for more information.

Trait Implementations

impl<I> Clone for Permutations<I> where I: Clone + Iterator, I::Item: Clone,

fn clone(&self) -> Self

impl<I> Debug for Permutations<I> where I: Iterator + Debug, I::Item: Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<I> FusedIterator for Permutations<I> where I: Iterator, I::Item: Clone,

impl<I> Iterator for Permutations<I> where I: Iterator, 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>)

Auto Trait Implementations

impl<I> Freeze for Permutations<I> where LazyBuffer<I>: Freeze,

impl<I> RefUnwindSafe for Permutations<I> where LazyBuffer<I>: RefUnwindSafe,

impl<I> Send for Permutations<I> where LazyBuffer<I>: Send,

impl<I> Sync for Permutations<I> where LazyBuffer<I>: Sync,

impl<I> Unpin for Permutations<I> where LazyBuffer<I>: Unpin,

impl<I> UnsafeUnpin for Permutations<I> where LazyBuffer<I>: UnsafeUnpin,

impl<I> UnwindSafe for Permutations<I> where LazyBuffer<I>: UnwindSafe,

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for Permutations<I>

impl<T> IntoEither for Permutations<I>

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

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

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

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

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