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) -> usize
fn fold<B, F>(self, init: B, f: F) -> B
where
    F: FnMut(B, Self::Item) -> B,

Auto Trait Implementations

impl<I> Freeze for Powerset<I> where CombinationsGeneric<I, Vec<usize>>: Freeze,

impl<I> RefUnwindSafe for Powerset<I> where CombinationsGeneric<I, Vec<usize>>: RefUnwindSafe,

impl<I> Send for Powerset<I> where CombinationsGeneric<I, Vec<usize>>: Send,

impl<I> Sync for Powerset<I> where CombinationsGeneric<I, Vec<usize>>: Sync,

impl<I> Unpin for Powerset<I> where CombinationsGeneric<I, Vec<usize>>: Unpin,

impl<I> UnsafeUnpin for Powerset<I> where CombinationsGeneric<I, Vec<usize>>: UnsafeUnpin,

impl<I> UnwindSafe for Powerset<I> where CombinationsGeneric<I, Vec<usize>>: UnwindSafe,

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for Powerset<I>

impl<T> IntoEither for Powerset<I>

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

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

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

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

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