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) -> usizefn size_hint(&self) -> (usize, Option<usize>)