Struct Powerset
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Powerset<I: Iterator> { /* private fields */ }
An iterator to iterate through the powerset of the elements from an iterator.
See .powerset() for more
information.
Trait Implementations
impl<I> Clone for Powerset<I>
where
I: Clone + Iterator,
I::Item: Clone,
fn clone(&self) -> Self
impl<I> Debug for Powerset<I>
where
I: Iterator + Debug,
I::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I> FusedIterator for Powerset<I>
where
I: Iterator,
I::Item: Clone,
impl<I> Iterator for Powerset<I>
where
I: Iterator,
I::Item: Clone,
type Item = Vec<<I as Iterator>::Item>;fn next(&mut self) -> Option<Self::Item>fn nth(&mut self, n: usize) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usizefn fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,